quarrant / mobx-persist-store

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

Use JSON.parse(JSON.stringify(propertyData)) instead of toJS(propertyData) #103

Open codeBelt opened 1 year ago

codeBelt commented 1 year ago

This resolves this issue: https://github.com/quarrant/mobx-persist-store/issues/101

I have tested in my application and I didn't see any issues with this change. I don't know how to test if this change is a improves performance over toJS() but I can see how it would be more performant.