Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Is this safe to set a component as a state value? #1806

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

You must be logged in to vote

In general non-mutable objects should be used as state so state changes are properly captured. It might make sense to use a handle or ID to reference components.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant