Skip to content

UseUpdateConfigResult

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

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

TConfig

The type of the config

error: unknown

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

The error object if the save operation failed, null if no error.


isError: boolean

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

True if save status is ‘error’.


isInitial: boolean

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

True if save status is ‘initial’.


isPending: boolean

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

True if save status is ‘pending’.


isSuccess: boolean

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

True if save status is ‘success’.


status: ManagerRequestStatus

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

The specific status of the save operation.

update(config): Promise<TConfig>

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

Replaces the entire config with the provided value.

TConfig

The entire config

Promise<TConfig>

The entire modified config

update(mutator): Promise<TConfig>

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

Updates the config using a mutator function.

ConfigMutator<TConfig>

The function that updates the config

Promise<TConfig>

The entire modified config