SIGN IN SIGN UP
TanStack / query UNCLAIMED

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

0 0 0 TypeScript

fix(react-query): useSuspenseQuery returns undefined as data when network is offline (#6350)

* #6344: reproduce query not suspending when offline

* shouldSuspend to return true when isPaused is true and other conditions are met

* change test to load data first on online and then go offline, then come back online

* adapt test to issue with changing query and rely on isPending rather than isPaused

* Adapt shouldSuspend condition & remove isRestoring from it
E
EL AYADI Mohamed committed
e7f6d3ae8b2f4230ec8cbea6f4cb8d4af83b7655
Parent: 83d71c3
Committed by GitHub <noreply@github.com> on 11/15/2023, 11:27:30 AM