Type Parameters
- Data extends unknown = any
- Payload extends unknown = any
Parameters
- handler: OneHandler<Data, Payload>
Optionaloptions: ILocalHandlerParams<Data, any>Optionalfallback?: (e: Error) => void
OptionalonLoadBegin?: () => void
OptionalonLoadEnd?: (isOk: boolean) => void
Optionalpayload?: Payload
OptionalresultMap?: (json: null | Record<string, any>) => null | Data
- An object containing the data and a function to change the data.
Executes a local handler function and manages the state of the data.