-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Framework: redux sites contains functions #2757
Comments
Likely a result of calling the wp-calypso/client/my-sites/controller.js Line 137 in 4166283
We should not be relying on the |
@gwwar Can we close this issue, since there are separate tasks to address this in the serialize/deserialize actions? |
It's slightly different. For example currently sites are persisted, but the way the data is received and stored hasn't been cleaned up. |
I think this issue is just a flavor of |
At the very least, we should try to whitelist attributes when receiving a site into the Redux store in the immediate future. There are conflicts in doing this, as some sections of the application are already using Redux site state and expecting it to contain the computed properties. This should be a near-term focus, as it will only become more difficult with time. I'll see if I can slice off some time in the next week to take a closer look. |
The sites module in the redux state tree is not a simple object and contains references to functions.
This is blocking redux state persistence in #2754To see this, inspect
reduxStore.getState().sites
:The text was updated successfully, but these errors were encountered: