Skip to content

UseUpdateConfigReducerResult

Defined in: packages/react/src/types.ts:116

Return value of the useUpdateConfigReducer hook. Contains the dispatched update function and the current status of the save operation.

TConfig

TPayload

error: unknown

Defined in: packages/react/src/types.ts:136

The error object if the save operation failed.


isError: boolean

Defined in: packages/react/src/types.ts:132

True if save status is ‘error’.


isInitial: boolean

Defined in: packages/react/src/types.ts:126

True if save status is ‘initial’.


isPending: boolean

Defined in: packages/react/src/types.ts:128

True if save status is ‘pending’.


isSuccess: boolean

Defined in: packages/react/src/types.ts:130

True if save status is ‘success’.


status: ManagerStatus

Defined in: packages/react/src/types.ts:134

The specific status of the save operation.

update(payload): Promise<TConfig>

Defined in: packages/react/src/types.ts:123

Updates the config by dispatching a payload to the defined reducer.

TPayload

The value passed into the update function that the reducer must apply to the config

Promise<TConfig>

The entire modified config