-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Feature/disable context sharing #1912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/disable context sharing #1912
Conversation
but still allow for it by adding a `contextSharing` boolean prop when creating the QueryClient context
I somehow lost the return statement
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tannerlinsley/react-query/3Z6gRW7VCE9EoY4486Yv7jHA7e2C |
since this feature wasn't really documented anywhere, I think we could ship this as a minor version. |
🎉 This PR is included in version 3.12.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
as discussed in #1764, this PR disables context sharing per default, and allows to enable it via a
contextSharing: boolean
prop on theQueryClientProvider
.I also tried to document it, mainly using the comment @tannerlinsley wrote in the code 😁