zodios-react icon indicating copy to clipboard operation
zodios-react copied to clipboard

chore: update to @tanstack/react-query v5

Open ThibautMarechal opened this issue 2 years ago • 1 comments

Fix #459

Hi, So I update the usage of @tanstack/react-query in react-zodios. But I would like to highlight some changes that may require some changes in the Types of Zodios itself :

For useInfiniteQuery & useImmutableInfiniteQuery the third argument (queryOptions) is actually required because of "getPageParamList", "initialPageParam" and "getNextPageParam", but the types is marked as optional.

I think it was already the case before but I had to changes the spec to make Typescript happy about it.

ThibautMarechal avatar Oct 30 '23 13:10 ThibautMarechal

@ecyrbe Hello, when can this PR be merged?