Action
Action receives payload from dispatch when it matches type of dispatcher.
let's see how to Implement it.
each @Action method will have two arguments one payload and other is state.
Payload is same value which being passed when there's a dispatch.
state is an Object with two methods, one is getState and updateState
Get State
this method returns current state of application.
Update State
this method helps us to update state key with some value.
Last updated