Jakob
Jakob
SSolidJS
Created by Jakob on 10/27/2023 in #support
Resetting state in child component
I have a form that takes default values as a prop. But the default values can change when a different dataset is selected in the parent, in which case I want to reset the form state and provide new default values. In React, you could use key for this, but that doesn't exist in Solid. Is there another solution?
5 replies