Skip to content

useControls doesn't update object fields values in UI #445

Answered by dbismut
user753 asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a specific reason why you'd be using Leva like this, with useState? The reason it doesn't work is because the deps array only modifies the settings, not the value of the inputs.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@user753
Comment options

@dbismut
Comment options

@dbismut
Comment options

@user753
Comment options

Answer selected by user753
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 #444 on February 24, 2023 16:19.