chore(react-query): update peer-deps for react19 in v4 #9310
+4
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
related: #8441
I'm the maintainer of Suspensive (a community project for React Query), who previously submitted a PR regarding React 19 support in React Query v4.
This time, I'd like to explicitly specify React 19 in the
peerDependencies
instead of thedependencies
. React Query v4 is already compatible with React 19 without any code changes, and we've confirmed this through the following steps:pnpm pack
) with React 19 specified inpeerDependencies
There are no breaking changes in React 19 that affect compatibility, and v4 works reliably without special handling. If issues do arise, they would likely be due to changes in React 19, not React Query v4 itself.
Currently, since React 19 is not listed in
peerDependencies
, usingreact-query@v4
in a React 19 environment causes the following problems: