quarrant / mobx-persist-store

Persist and rehydrate observable properties in mobx store.
268 stars 14 forks source link

modifying array data inside of a Map doesnt work #70

Closed sergeykimaia closed 2 years ago

sergeykimaia commented 2 years ago

code blocks reproduction: https://codesandbox.io/s/mobx-persist-store-version-1-forked-5ui54?file=/src/App.tsx

clicking on adduser1 adds a user clicking on adduser2 modifies that user, check console and you'll see debug not triggered

EDIT: an even simpler Example, here editing a value in a map doesn't work. , mobx gets updated, but it doesn't persist. https://codesandbox.io/s/mobx-persist-store-version-1-forked-96gqe?file=/src/stores/User.store.ts

PavanGangireddy commented 2 years ago

Same issue with observable.array([])

quarrant commented 2 years ago

mobx-persist-store@1.0.6