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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
When headers carry per-request values (request IDs, trace headers), pass a stable httpHeadersCallback, either a module-level function or one from useCallback, so a Suspense retry reuses the pending request. After login, logout or a tenant switch, call reconnectQueries() to discard previous results, as before.
Fixed
useSuspenseQuery and useSuspenseQueryWithPaging no longer share a cached result between <Arc> providers whose request headers differ. A result is reused only by consumers that use the same httpHeadersCallback or send identical header values. Header values are never kept in the cache.
A shared Suspense result stays cached until the last consumer using it unmounts, instead of being removed when any one consumer unmounts.
Refreshing a shared Suspense query from any consumer always sends a new request.