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?
Hi,
I think there is missconception while using
ImmutableUtil.js
. When overridingonSerialize
/onDeserialize
in store:and calling
immutable(MyStore)
it uses defaultonSerialize
andonDeserialize
methods defined inimmutable
. It's possible to use in right way by callingimmutable(MyStore, MyStore.config)
. Wouldn't it be nice to use the new methods to override defaults?