Skip to content

Function: selectionViews()

selectionViews(options): SelectionViewsStore

Defined in: selection-views.tsx:113

Create (or adopt) the named-views store for a scope, and register its four agent actions. Durable-adopted: one store per scope per page, so the widget and the actions share one reactive list. Call it once in the store module:

ts
export const views = selectionViews({ scope: appScope });

Parameters

options

scope

string | Scope

storageKey?

string

Storage key override; defaults to aiui:views:<scope>. Fixed at first call — the store is durable-adopted.

Returns

SelectionViewsStore