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
When using SWR with Suspense mode (suspense: true) in React 19, tests fail to transition from loading to success/error states. Components remain stuck in the loading state and tests timeout.
Expected Behavior
Components should:
Show loading state initially
Transition to success/error state after data loads
Repro Steps / Code Example
Using SWR:
const{ data }=useSWR(key,fetcher,{suspense: true});