diff --git a/packages/react-query/src/useBaseQuery.ts b/packages/react-query/src/useBaseQuery.ts index c70230a7b6..381ff79ca8 100644 --- a/packages/react-query/src/useBaseQuery.ts +++ b/packages/react-query/src/useBaseQuery.ts @@ -100,9 +100,6 @@ export function useBaseQuery< // Handle suspense if (shouldSuspend(defaultedOptions, result)) { - // Do the same thing as the effect right above because the effect won't run - // when we suspend but also, the component won't re-mount so our observer would - // be out of date. throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary) }