Skip to content

@apollo/client@4.3.7

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Nov 19:19
· 1 commit to main since this release
0041161

Patch Changes

  • #13518 b302e5a Thanks @jerelmiller! - Fix an issue where an AbortError was thrown by useReadQuery when a useBackgroundQuery query is skipped, its useReadQuery component unmounts, and the query is then re-enabled in the same render that useReadQuery mounts again.

  • #13516 d7cb685 Thanks @trevor-scheer! - Fix a race when chaining refetch and fetchMore calls with useSuspenseQuery inside React transitions.

    For example, an app can refresh the first page of a list with refetch(), then immediately load the next page with fetchMore() from the refetch promise's .then callback. A timer from the completed refetch could make useTransition's isPending become false before the next page arrived, hiding the pending indicator while the list still showed only the first page. Keep the transition pending until the next page is available. This also applies when the first request is another fetchMore().