appstate
v2.1.2
Published
Barebone state manager implementation based on Cerebral signals conception
Downloads
53
Readme
AppState
Appstate is a Javascript state manager, based on Cerebral signals conception. Appstate use Baobab as main state storage.
Usage
appstate.create(actions)
Create signal function. Accept actions
array.
Example:
var actions = [
syncAction,
[
asyncAction, {
success: [successSyncAction],
error: [errorSyncAction]
}
]
];
var signal = appstate.create(actions) // => Function
signal(state, services, args)
Run signal function, return Promise
with signal run results.
Accept Baobab tree reference as state
, services
and args
object.