-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PersistedState does not write state to storage if only a nested property is changed. #224
Comments
…operty is changed. fixes svecosystem#224
I am currently struggling with binding to a property.
Currently this is not working. When I try to $inspect the state, changes to the active tab do not trigger any state changes. |
@slinso yes, it seems to be working perfectly. I have a state like this: { "prop1": { "prop2": { "prop3": "some text" }}} The value property of a text input is bound to the Note that you have to bind to |
Thank you! Hope it gets merged soon. Yes, I used |
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: