Skip to main content

Interface: UseAmnesiaScopesResult

Defined in: use-scopes.ts:95

View of the multi-scope provider. Re-renders when the active scope id changes and when the registered scope id set changes (lazy scope creation).

Properties

activeScopeId

activeScopeId: string

Defined in: use-scopes.ts:97

Currently active scope id.


clear

clear: (scopeId?) => void

Defined in: use-scopes.ts:107

Clear past + future. With no argument, every registered scope is cleared. With a scopeId, only that scope is cleared.

Parameters

ParameterType
scopeId?string

Returns

void


scopeIds

scopeIds: readonly string[]

Defined in: use-scopes.ts:102

Snapshot of registered scope ids in insertion order. Includes the default scope only after it has been instantiated (lazy creation).