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 e410e31 commit 5525694Copy full SHA for 5525694
packages/react-query/src/useBaseQuery.ts
@@ -100,9 +100,6 @@ export function useBaseQuery<
100
101
// Handle suspense
102
if (shouldSuspend(defaultedOptions, result)) {
103
- // Do the same thing as the effect right above because the effect won't run
104
- // when we suspend but also, the component won't re-mount so our observer would
105
- // be out of date.
106
throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary)
107
}
108
0 commit comments