useUpdateConfigReducer
useUpdateConfigReducer<
TConfig,TPayload>(reducer):UseUpdateConfigReducerResult<TConfig,TPayload>
Defined in: packages/react/src/hooks.ts:147
Hook to update the configuration using a Reducer pattern. Best for complex logic or reusable actions.
Type Parameters
Section titled “Type Parameters”TConfig
Section titled “TConfig”TConfig
The type of the configuration.
TPayload
Section titled “TPayload”TPayload
The type of the action payload accepted by the reducer.
Parameters
Section titled “Parameters”reducer
Section titled “reducer”ConfigReducer<TConfig, TPayload>
A function that takes current config and a payload, returning the new config.
Returns
Section titled “Returns”UseUpdateConfigReducerResult<TConfig, TPayload>
An object containing the update(payload) function and status flags.