Replies: 1 comment
-
I am an idiot, I was testing the wrong code. It actually works fine after making that change. Oops. But regardless, wondering if this is the best approach or not. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a component that creates a form for editing a value. It has local state, because the user might choose to discard the changes they make.
This is rendered by having a list, the user picks an item from the list, and then it shows the form for the appropriate item here. At least that is the theory.
But when the user selects a different item from the list, the values do not get updated. This is not surprising, I think
use_signal
only gets initialized on the first run. And nested isn't tracked.But what is the solution here?
I have tried:
But the effect never seems to get called, and I can't visualize what I have got wrong here.
Beta Was this translation helpful? Give feedback.
All reactions