Skip to content

Commit 4d66f14

Browse files
committed
Update index.js
1 parent 143c5b2 commit 4d66f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export function useQuery(
206206

207207
const isCached = successCount && !error
208208

209-
const [isLoading, setIsLoading] = React.useState(!cache || !isCached)
209+
const [isLoading, setIsLoading] = React.useState(manual ? false : !cache || !isCached)
210210

211211
const latestRef = React.useRef({})
212212
latestRef.current = {

0 commit comments

Comments
 (0)