drborges / arbor-store

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

Make react component state property a proxy #18

Closed drborges closed 6 years ago

drborges commented 6 years ago

This allows mutations to happen on state fields even when they are not proxies themselves, e.g.:

this.state.name = "Diego"
// This now triggers a mutation at path /name