Skip to content

Commit

Permalink
Subscribe even if client.disableNetworkFetches true in useQuery.
Browse files Browse the repository at this point in the history
I believe this captures the spirit of #8709, taking the big refactoring
from #8596 into account.
  • Loading branch information
benjamn committed Aug 30, 2021
1 parent 082894d commit 4a0e8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/hooks/useQuery.ts
Expand Up @@ -149,7 +149,7 @@ export function useQuery<

// An effect to subscribe to the current observable query
useEffect(() => {
if (context.renderPromises || client.disableNetworkFetches) {
if (context.renderPromises) {
return;
}

Expand Down

0 comments on commit 4a0e8dd

Please sign in to comment.