Skip to content

boolean state in context checkbox #719

Answered by segunadebayo
oppianmatt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @oppianmatt,

You're right that the checkbox states should be modeled as separate states. We did that initially.

This started to fall apart in scenarios where users might want to explicitly control the machine's state from their framework via some local state. Syncing those two pieces of state was a bit challenging (even though I think it can be done)

Considering the current solution is temporary, we might still consider moving from context to explicit state in the future.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by segunadebayo
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 #712 on July 04, 2023 10:40.