Skip to content

Modeling firebase subscriptions with selectors #1863

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

You must be logged in to vote

Yeah, I mean subscribing using whatever mechanism Firebase uses within the atom effect. There is no way to subscribe to other atoms/selectors from an effect, though. If you want to subscribe an effect to multiple atoms/selectors you can always use useEffect(). That, coupled with useRecoilCallback() can enable you to subscribe to everything and update multiple atoms.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SunilChiluvuri
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
Converted from issue

This discussion was converted from issue #1860 on June 10, 2022 22:56.