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
When using persist() I'd expect computed properties not to be stored.
Root level computed properties are not persisted. But computed properties nested in the model are persisted as static values. I'd think computed values should never be persisted.
In practice, the static property is overwritten with a computed getter in the rootReducer. So the statically stored value mostly just wastes space (and maybe causes a bit of confusion when debugging).
The text was updated successfully, but these errors were encountered:
I wonder if this should also apply to what is displayed in redux dev tools? It can be quite messy if you have lots of computed properties and they are displayed with all your state diffs.
When using
persist()
I'd expect computed properties not to be stored.Root level computed properties are not persisted. But computed properties nested in the model are persisted as static values. I'd think computed values should never be persisted.
In practice, the static property is overwritten with a computed getter in the rootReducer. So the statically stored value mostly just wastes space (and maybe causes a bit of confusion when debugging).
The text was updated successfully, but these errors were encountered: