Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

v3 support #81

Merged
merged 5 commits into from
Nov 13, 2020
Merged

v3 support #81

merged 5 commits into from
Nov 13, 2020

Conversation

TkDodo
Copy link

@TkDodo TkDodo commented Nov 13, 2020

closes #78

This pull request makes the react-query-devtools work with the latest v3 beta

and extracted the queryCache from the queryClient
I also removed the fallback because with v3, you always need to wrap your app in a QueryClientProvider
but we don't really care about the argument because we have the queryCache in the closure
@TkDodo
Copy link
Author

TkDodo commented Nov 13, 2020

@tannerlinsley This obviously shouldn't go to master, but there isn't really a v3 branch yet 🤷

@@ -65,6 +65,7 @@
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-query": "^3.2.0-beta.23",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if it's a good idea to also add react-query to the dev-dependencies, but it gave me auto-complete when importing from it :)

@tannerlinsley tannerlinsley changed the title Feature/78 v3 v3 support Nov 13, 2020
@tannerlinsley tannerlinsley changed the base branch from master to beta November 13, 2020 23:47
@tannerlinsley tannerlinsley merged commit 16b0ea5 into tannerlinsley:beta Nov 13, 2020
@tannerlinsley
Copy link
Owner

🎉 This PR is included in version 3.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@TkDodo TkDodo deleted the feature/78-v3 branch November 14, 2020 06:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not working with react-query@3
2 participants