Additional debugging information
To get better understanding on what is changing what react-state-rxjs
supports state messages
or actionType
. In order to set additional debugging information you need to pass an object as a third parameter to store.update
method.
addTodo(item: TodoModel) {
this.store.update(state => {
state.push(fromJS(item));
}, false, { message: "Item Added" })
}
Complete message would look like:
Demo

Default actions
Some functions has their default actions which are set if not overridden from actions
store.update - ActionType.Update
store.reset - ActionType.Reset
Action types
These action types available out of the box
Update
Reset
Insert
Delete
Last updated
Was this helpful?