Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to react-query@5 #179

Merged
merged 9 commits into from
Oct 23, 2023
Merged

Update to react-query@5 #179

merged 9 commits into from
Oct 23, 2023

Conversation

paul-sachs
Copy link
Collaborator

@paul-sachs paul-sachs commented Sep 27, 2023

Though most of the types have stayed the same, there are a few breaking changes to be aware about:

  • Removed onError passed to useQuery, this aligns with the removed event handlers in @tanstack/query
  • useInfiniteQuery now requires the initial page param to be defined in the input because initialPageParam is required

This will require a bump to minor version.

@paul-sachs paul-sachs marked this pull request as ready for review October 20, 2023 16:42
@paul-sachs paul-sachs requested a review from timostamm October 23, 2023 14:29
@paul-sachs paul-sachs merged commit 3252e24 into main Oct 23, 2023
4 checks passed
@paul-sachs paul-sachs deleted the react-query-v5 branch October 23, 2023 15:46
@paul-sachs paul-sachs mentioned this pull request Oct 23, 2023
paul-sachs added a commit that referenced this pull request Oct 24, 2023
## What's Changed
* Update to react-query@5 by @paul-sachs in
#179

### Update to react-query@5

This update contains some breaking changes including, but not limited
to:
- Removed onError passed to useQuery, this aligns with the removed event
handlers in
[@tanstack/query](https://tanstack.com/query/v5/docs/react/guides/migrating-to-v5#callbacks-on-usequery-and-queryobserver-have-been-removed)
- useInfiniteQuery now requires the initial page param to be defined in
the input because initialPageParam is
[required](https://tanstack.com/query/v5/docs/react/guides/migrating-to-v5#infinite-queries-now-need-a-initialpageparam)


**Full Changelog**:
v0.5.3...v0.6.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants