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
{{ message }}
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
// Must set on `#persist` instead of `#persistRaw` in order to ensure that the `Proxy` is correctly configured
198
+
//
199
+
// We have to use `...` so `on-change` recognizes the changes to `state` (i.e. set #persistChanged` to true). This is because:
200
+
// 1. In `getState`, we returned the value from `persistRaw`, which does not have the Proxy to monitor state changes
201
+
// 2. If we were to assign `state` to `#persist.s`, `on-change` would assume nothing changed since `state` is still === `#persist.s` since we returned a reference in `getState`
0 commit comments