queryClient.clear()
breaks with suspense and when query goes from success to fail
#2157
Labels
queryClient.clear()
breaks with suspense and when query goes from success to fail
#2157
Describe the bug
Using
queryClient.clear()
with suspense enabled causes an infinite loop. We encountered this in Blitz on user logout: blitz-js/blitz#2249To Reproduce
Add the following to
src/react/tests/suspense.test.tsx
Expected behavior
Should Work
Additional context
React-query 3.13.9
Workaround
@tannerlinsley @TkDodo
The text was updated successfully, but these errors were encountered: