-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Hi,
I think there is missconception while using ImmutableUtil.js. When overriding onSerialize/onDeserialize in store:
import immutable from 'alt-utils/lib/ImmutableUtils'
class MyStore {
static config = {
onSerialize: state => {
...
},
onDeserialize: data => {
...
}
}
...
}and calling immutable(MyStore) it uses default onSerialize and onDeserialize methods defined in
immutable. It's possible to use in right way by calling immutable(MyStore, MyStore.config). Wouldn't it be nice to use the new methods to override defaults?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels