You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #serialize method is only called in the current setter of the PersistedState class. If the state is an object with deeply nested properties and a property is changed in the 2nd or 3rd level, serialization won't run.
I am currently struggling with binding to a property.
<Tabs.Root bind:active={state.property} ...
Currently this is not working. When I try to $inspect the state, changes to the active tab do not trigger any state changes.
Would your pull request fix this behaviour as well?
The value property of a text input is bound to the state.current.prop1.prop2.prop3 property.
If I change the value of the value of prop3 the text input value updates correctly and the value is instantly written to the storage as well.
Note that you have to bind to state.current.<property> not state.<property>
Describe the bug
The
#serialize
method is only called in thecurrent
setter of thePersistedState
class. If the state is an object with deeply nested properties and a property is changed in the 2nd or 3rd level, serialization won't run.Reproduction
Github repo with the demonstration: https://github.com/gyszalai/runed-persisted-state-repro
Logs
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: