new Sdo(initialState [, storeInstance])
Creates an instance of Sdo.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
initialState |
Object | |||
storeInstance |
Store |
<optional> |
defaultStoreInstance |
- Source:
Members
-
namespace :String
-
Type:
- String
- Source:
Methods
-
commit(state)
-
Commits state to store.
Parameters:
Name Type Description state
Object - Source:
-
reset()
-
Reset state to intital state
- Source:
-
subscribe(callback)
-
subscribe() register the callback function with registerCallback and returns the unsubscribe function.
Parameters:
Name Type Description callback
Furtion - Source:
Returns:
- Type
- function