fetchToStateReceiver
fetchToStateReceiver method was created for fast state manage. You create method that return promise with new state. When event will be emited, method will be called and promise response replace required state.
Last updated
fetchToStateReceiver method was created for fast state manage. You create method that return promise with new state. When event will be emited, method will be called and promise response replace required state.
Last updated
Attribute name
Type
description
eventName
string
EventsReceiver event name
statePath
string
State name or path to state that will be replaced by fetch method response
fetchMethod
(eventData: any, state: any): Promise<any>
Fetch method. Method will be called when eventName emitted and must return Promise