- useLocalHandler<Data, Payload>(handler, options?): ILocalHandlerResult<Data>
Type Parameters
- Data extends unknown = any
- Payload extends unknown = any
Parameters
- handler: OneHandler<Data, Payload>
- options: ILocalHandlerParams<Data, any> = {}
Returns ILocalHandlerResult<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.