quarrant / mobx-persist-store

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

Class instances used as a `storage` get a warning. #105

Open futpib opened 1 year ago

futpib commented 1 year ago

https://github.com/quarrant/mobx-persist-store/blob/15748693cdaef036e40db21c552dfecf105afa90/src/utils.ts#L42-L44

There is no reason to check that they are own properties, they could be prototype properties and work as well. Class methods are not own properties.