Skip to content

Using tanstack router, tanstack query, and jotai together, there are cases where data cannot be obtained. #3014

Answered by rothsandro
shlroland asked this question in Q&A
Discussion options

You must be logged in to vote

Your components are wrapped in a <Provider> which creates a new store, so your TestC component uses this store instead of the default store.

You can either remove the provider if you want to use the default store,
or create a custom store, use it when setting the atom value and provide it to the Provider component.

Replies: 1 comment 1 reply

Comment options

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

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