Skip to content

UseUpdateConfigResult

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

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

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


isError: boolean

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

True if save status is ‘error’.


isInitial: boolean

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

True if save status is ‘initial’.


isPending: boolean

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

True if save status is ‘pending’.


isSuccess: boolean

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

True if save status is ‘success’.


status: ManagerStatus

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

The specific status of the save operation.

update(config): Promise<TConfig>

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

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

Updates the config using a mutator function.

ConfigMutator<TConfig>

The function that updates the config

Promise<TConfig>

The entire modified config