Repository navigation
Patch Changes
-
#13518
b302e5aThanks @jerelmiller! - Fix an issue where anAbortErrorwas thrown byuseReadQuerywhen auseBackgroundQueryquery is skipped, itsuseReadQuerycomponent unmounts, and the query is then re-enabled in the same render thatuseReadQuerymounts again. -
#13516
d7cb685Thanks @trevor-scheer! - Fix a race when chainingrefetchandfetchMorecalls withuseSuspenseQueryinside React transitions.For example, an app can refresh the first page of a list with
refetch(), then immediately load the next page withfetchMore()from the refetch promise's.thencallback. A timer from the completed refetch could makeuseTransition'sisPendingbecomefalsebefore 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 anotherfetchMore().