Skip to content

ManagerState

Defined in: packages/core/src/types.ts:20

The internal state of the ConfigManager, exposed via a Zustand store. This interface contains the stored config, metadata, and granular loading/saving status flags.

TConfig

The shape of the configuration object.

readonly config: TConfig

Defined in: packages/core/src/types.ts:22

The current configuration object.


readonly hasBeenHydrated: boolean

Defined in: packages/core/src/types.ts:26

Indicates if the store has been populated with data from the adapter at least once.


readonly isLoadError: boolean

Defined in: packages/core/src/types.ts:40

True if load status is ‘error’.


readonly isLoadInitial: boolean

Defined in: packages/core/src/types.ts:34

True if load status is ‘initial’.


readonly isLoadPending: boolean

Defined in: packages/core/src/types.ts:36

True if load status is ‘pending’.


readonly isLoadSuccess: boolean

Defined in: packages/core/src/types.ts:38

True if load status is ‘success’.


readonly isSaveError: boolean

Defined in: packages/core/src/types.ts:54

True if save status is ‘error’.


readonly isSaveInitial: boolean

Defined in: packages/core/src/types.ts:48

True if save status is ‘initial’.


readonly isSavePending: boolean

Defined in: packages/core/src/types.ts:50

True if save status is ‘pending’.


readonly isSaveSuccess: boolean

Defined in: packages/core/src/types.ts:52

True if save status is ‘success’.


readonly loadError: unknown

Defined in: packages/core/src/types.ts:32

The error object if the load operation failed. null if successful, idle or pending.


readonly loadStatus: ManagerStatus

Defined in: packages/core/src/types.ts:30

The specific status of the load operation.


readonly metadata: ManagerMetadata

Defined in: packages/core/src/types.ts:24

Metadata regarding data versions and schema versions.


readonly saveError: unknown

Defined in: packages/core/src/types.ts:46

The error object if the save operation failed. null if successful, idle or pending.


readonly saveStatus: ManagerStatus

Defined in: packages/core/src/types.ts:44

The specific status of the save operation.