Closed jareware closed 9 years ago
Well, actually it looks like this config access should actually use store.StoreModel.config
like snapshot()
does, and it sorta accidentally works with class-based stores because the config
is available on the prototype chain.
This is also happening when using alt-router.
Fixed in alt@0.17.8.
Very nice, thanks!
If I define a store like:
I get:
from here.
If I use
alt.addStore(StoreClass)
with the sameconfig
patched into the prototype it works as expected. Also the immutable-util works as expected, because when ItakeSnapshot('derpStore')
I get a sensible serialization.Ideas?