Skip to content
Discussion options

You must be logged in to vote

You can't use Rc<RefCell<_>> with the reactive system, which requires Send + Sync values. Sorry.

I don't know what IllumCanvasHandle is. If it's a threadsafe type, then you can use it with Arc<Mutex<_>> if you need interior mutability.

Note that StoredValue already provides interior mutability, though; there's almost never a reason to use an Arc/Rc inside it.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@gbj
Comment options

gbj Mar 2, 2026
Maintainer

Answer selected by jarlub-senlogic
@jarlub-senlogic
Comment options

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