@types/react-query package and had problems.Hi @lukaszfiszer, @jacehensley and @matteofrana, I have updated react-query to the latest stable version (1.0.2) but the type definitions are outdated.
came here for answers too. what needs to be updated? I see that status is missing

keeping a gist here with fixed https://gist.github.com/sw-yx/1c9428a30f87f678c4fba0a2fd45a47d
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 !!! 🙏
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.