Open
Description
Update to the next major React release (currently v18, v19 may be released soon)
A number of other dependencies will also need to be updated at the same time:
-
@tanstack/react-query@5
- v5 drops support for React 17
- most of the preparation already done as part of React Router v6 update in Update to use React Router data router APIs #3465 and related issues. Remaining config changes described below
- originally described in Update React Router to v6 #2452 (comment)
- https://tanstack.com/query/latest/docs/framework/react/guides/migrating-to-v5
- rename
cacheTime
togcTime
- rename
isLoading
toisPending
- also renames
status: loading
tostatus: pending
, andisInitialLoading
toisLoading
- can we stick with
isLoading
for most of our use cases? (the newisLoading
isisPending && isFetching
) - see the 'status: pending' section of v5 Roadmap 🗺 TanStack/query#4252 for details
- also renames
- rename
- minimum react version 18.2.0
-
@testing-library/react@13
or later- v13 drops support for React 17
- ?