You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Vakrim
changed the title
Reseting query while atomWithSuspenseQuery is not mounted leaves it in pending instead of suspense state
Resetting a query while the atomWithSuspenseQuery is not mounted results in a pending state, rather than the expected suspense state.
May 24, 2024
Reproduction steps
atomWithSuspenseQuery
queryClient.resetQueries
Expected state
Components suspends while refetching data
Actual behavior
useAtomValue
returns query in "pending" stateMinimal reproducible example
https://codesandbox.io/p/sandbox/jotai-react-query-repro-kchwjt
Packages versions:
The text was updated successfully, but these errors were encountered: