Skip to content
Discussion options

You must be logged in to vote

Would the contextSharing prop on QueryClientProvider do what you want? Docs

contextSharing: boolean
defaults to false

Set this to true to enable context sharing, which will share the first and at least one instance of the context
across the window to ensure that if React Query is used across different bundles or microfrontends
they will all use the same instance of context, regardless of module scoping.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ismoiliy98
Comment options

Comment options

You must be logged in to vote
1 reply
@ismoiliy98
Comment options

Answer selected by ismoiliy98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants