Skip to content

Is it possible to use different query param in different components (by router) #2079

Answered by drarmstr
Gumichocopengin8 asked this question in Q&A
Discussion options

You must be logged in to vote

It should be the ancestor of all components which use the synced atom. So, you could provide different <RecoilURLSyncJSON> components in different routes. Also, since your example has different storeKey's, they can also both co-exist if necessary.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Gumichocopengin8
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