pinqy520 / mobx-persist

persist mobx stores
MIT License
560 stars 62 forks source link

MobX 6.X Usage #88

Open ragecryx opened 3 years ago

ragecryx commented 3 years ago

Can the library be used with MobX version 6.0? I can't seem to find an example using makeObservable function.

paramoNNNN commented 3 years ago

Same, I can't make it work with makeObservable.

idanlevi1 commented 3 years ago

Any solution?

idanlevi1 commented 3 years ago

Any solution?

After a while, my solution:

MobX 6 starter - with mobx-persist-store & without decorators

Github Source / Code Sendbox

eladgel commented 3 years ago

@idanlevi1 so different library?

idanlevi1 commented 3 years ago

@idanlevi1 so different library?

@eladgel Yes, we gave up on mobx-persist, the package did not update for 3 years so we change to a new one I wrote a guide for it: https://idanlevi2.medium.com/react-with-mobx-6-with-persist-and-without-decorators-bd7e5a0578d6

And if you want more details you can send me a message (also in Hebrew 😉)

eladgel commented 3 years ago

@idanlevi1 That's great. We use React-Native and the Wix RNN, So we will need to migrate to that as well