Skip to content

Conversation

@ikalnytskyi
Copy link
Member

We already use immutable.js classes in state to be protected from
accidental state mutation. However, the protect is not complete as the
root object is still plain Object() instance. So let's complete
protection by using immutable.js Map as root object for state.

Besides, having root state as immutable.js Map we make it easier to
convert the whole state to plain JS in tests.

We already use immutable.js classes in state to be protected from
accidental state mutation. However, the protect is not complete as the
root object is still plain Object() instance. So let's complete
protection by using immutable.js Map as root object for state.

Besides, having root state as immutable.js Map we make it easier to
convert the whole state to plain JS in tests.
@ikalnytskyi ikalnytskyi merged commit a64241a into master Jan 4, 2018
@ikalnytskyi ikalnytskyi deleted the immutable-store branch January 4, 2018 14:41
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.

4 participants