Skip to content

Commit d725956

Browse files
authored
fix: cyclic dependency on useQuery and useMutation (#324)
1 parent cea059e commit d725956

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/useMutation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import useFetch, { FetchContext } from '.'
21
import { useContext, useCallback } from 'react'
2+
import useFetch from './useFetch'
3+
import { FetchContext } from './FetchContext'
34
import { ReqBase } from './types'
45
import { invariant, isString, useURLRequiredInvariant } from './utils'
56

src/useQuery.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import useFetch, { FetchContext } from '.'
21
import { useContext, useCallback } from 'react'
2+
import useFetch from './useFetch'
3+
import { FetchContext } from './FetchContext'
34
import { ReqBase, Cache } from './types'
45
import { invariant, isString, useURLRequiredInvariant } from './utils'
56

0 commit comments

Comments
 (0)