Skip to content
Discussion options

You must be logged in to vote

You can use the @tanstack/query-core package, which is in vanilla TypeScript and which is used by all adapters.

Because when I sticks state with react provider how can I retrieve from from Vue? It is really complicated for me.

You can create one QueryClient and pass that to different Providers (vue, react). Then, they will use the same cache and share the data, so you can have something that was added to the cache with react and retrieve it with vue.

But honestly, I thought the goal of microfrontends is to isolate and separate. If two microfrontends write to the same cache and kinda depend on each other - that doesn't sound like a good idea to me ...

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@TkDodo
Comment options

@nemonemi
Comment options

@czescwojtek
Comment options

@sgcullen
Comment options

@czescwojtek
Comment options

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