drborges / arbor-store

Seamless state management made with ❤️
https://github.com/drborges/arbor-store
8 stars 0 forks source link

Enhance NodeArray API #24

Closed drborges closed 6 years ago

drborges commented 6 years ago

Mutations in Arbor do not affect the current state tree, they rather cause a new state tree to be created representing the new state.

In order to avoid in place mutations when operating on Arrays (splice, sort, shift, ...), the NodeArray API has to provide an immutable version of these methods.

Resolves #15