microcosm
Advanced tools
Changelog
9.0.0
app.push
is called.app.push
accepts a callback as the third argument which will be invoked when an action is completely resolved (More in breaking changes)app.get
or app.toObject()
to retrieve state, use app.state
.app.push
is now app.push(action, [...arguments], callback)
.app.prepare
is now app.prepare(action, [...arguments])
.For those using the Foliage API, consider using Foliage within Stores themselves.
Changelog
8.3.0
In the past, Microcosm would use requestAnimationFrame to batch together changes. However this can cause unexpected consequences when sequentially performing otherwise synchronous operations. For those who wish to preserve this behavior, consider using debounce to "choke" high frequency changes.
Changelog
8.2.0
0.24.0
.Store.prototype.send
to Store.send
. This has always been
an internal API, however those using this method for testing will
need to update. This change is motivated by a desire to reduce as
much surface area from Store instances as possible.babel-plugin-object-assign
for extensionloose
babel compilationFor those using Store.prototype.send
, the following change is
necessary:
// Before
store.send(state, action, payload)
// After
Store.send(store, action, state, payload)