zodios-react
zodios-react copied to clipboard
Support tanstack query v5
See this guide: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5
I'm taking a look at this
v5 also has suspense queries which remove a lot of boilerplate dealing with pending and error states (https://tanstack.com/query/v5/docs/react/reference/useSuspenseQuery). It would be good to support them in zodios, possibly with another boolean flag (suspense: true).
@nhaustov Adding a boolean to control if it will suspense or not, will goes against the rules of hooks.
I can try to work on it @ecyrbe ? It may require some refactoring since lot of the code would be duplicated with the useSuspenceQuery, useQuery, useImmutableSuspenseQuery, useImmutableSuspenseQuery.
Should I make it in the same pull-request ?
I think it would be great to just get out a release with tanstack query v5 and no support of suspense query. and add the suspense feature in a later pull request.
Edit: this would allow current users to just upgrade to query v5. Additional features can be added in a later step.
Hi, The merge of the PR #464 is planned ?
Looks like the project is dead. I think it should be removed as a suggestion from the Zodios docs.
@ecyrbe was busy on another project and is expected to get back early 2024 (readed from twitter)
It's time to move from a single person project to many people. I hope @ecyrbe sees this.