Definitelytyped: Update types for react-query v1

Created on 27 Feb 2020  ·  7Comments  ·  Source: DefinitelyTyped/DefinitelyTyped

Hi @lukaszfiszer, @jacehensley and @matteofrana, I have updated react-query to the latest stable version (1.0.2) but the type definitions are outdated.

Most helpful comment

Indeed, there is a huge list of changes in v.1 of react-query, which made those type definitions out-of-date. I'm working on it, hope to finish by the end of the weekend.

All 7 comments

came here for answers too. what needs to be updated? I see that status is missing
image

Most of the definitions need refactored.

useQuery is no longer overloaded, and there is a dedicated usePaginatedQuery method. The refetch code has also changed to use a new cache object.

Sent from my iPhone

On Feb 28, 2020, at 8:25 PM, swyx notifications@github.com wrote:


keeping a gist here with fixed https://gist.github.com/sw-yx/1c9428a30f87f678c4fba0a2fd45a47d


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Indeed, there is a huge list of changes in v.1 of react-query, which made those type definitions out-of-date. I'm working on it, hope to finish by the end of the weekend.

Any update on it? 😉

PR opened: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/42830 Code review and peer verification is more than welcomed!

Thanks @lukaszfiszer !!! 🙏

Was this page helpful?
0 / 5 - 0 ratings