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 models serializable #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Make models serializable #9

wants to merge 4 commits into from

Conversation

jgaskins
Copy link
Member

This can allow them to be stored in localStorage, sent to the server, etc.

It's a start to add support for #4.

@ajjahn
Copy link
Contributor

ajjahn commented Dec 2, 2016

Would this make sense to be an optional mixin, similar to #10?

@jgaskins
Copy link
Member Author

jgaskins commented Dec 3, 2016

Probably not a bad idea. It was really only ever intended to support a serializable store so that you could send your store's initial state and action history across the wire for debugging. Beyond that, I can see this being used for all the wrong reasons if it were baseline functionality.

If two objects are the same instance, we don't need to compare
attributes. They are equal by definition.
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.

2 participants