Skip to content

UseUpdateConfigReducerResult

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

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:133

The error object if the save operation failed.


isError: boolean

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

True if save status is ‘error’.


isInitial: boolean

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

True if save status is ‘initial’.


isPending: boolean

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

True if save status is ‘pending’.


isSuccess: boolean

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

True if save status is ‘success’.


status: ManagerRequestStatus

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

The specific status of the save operation.

update(payload): Promise<TConfig>

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

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