Skip to content

Release v25.3.5

Choose a tag to compare

@github-actions github-actions released this 28 Nov 00:22
9972ae5

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.