We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db670ee commit ef26f89Copy full SHA for ef26f89
1 file changed
src/useBaseQuery.js
@@ -40,6 +40,7 @@ export function useBaseQuery(queryKey, queryVariables, queryFn, config = {}) {
40
41
// Perform the initial fetch for this query if necessary
42
if (
43
+ !getLatestConfig().manual && // Don't auto fetch if config is set to manual query
44
!query.wasSuspensed && // Don't double fetch for suspense
45
query.state.isStale && // Only refetch if stale
46
(getLatestConfig().refetchOnMount || query.instances.length === 1)
0 commit comments