Skip to content
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

Make STATE_FLAG a string to fix serialization. #321

Merged
merged 3 commits into from
Oct 9, 2019

Conversation

kirbycool
Copy link
Collaborator

@kirbycool kirbycool commented Oct 7, 2019

Resolves #320

JS symbols aren't serializable, so we should use a string for the
STATE_FLAG in the orm state.

Resolves redux-orm#320

JS symbols aren't serializable, so we should use a string for the
`STATE_FLAG` in the orm state.
orm = createTestORM();
});

it("can serialize and deserialized the state", () => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fails before the change.
Let me know if there's a better place to put the test.

@haveyaseen haveyaseen merged commit 98d7f7a into redux-orm:master Oct 9, 2019
@haveyaseen haveyaseen changed the title Make STATE_FLAG a string to fix serlialization. Make STATE_FLAG a string to fix serialization. Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STATE_FLAG doesn't serialize
2 participants