Skip to content

recommended ways to handle contexts with new reactive primitives? #372

Answered by lukechu10
lictex asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there sorry for taking so long to answer. The recommended pattern is to use RcSignal. Note that the clone()s are not actually necessary because use_context() returns a reference so you can just hold a &RcSignal which is Copy.

Replies: 1 comment 1 reply

Comment options

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

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