Skip to content

Documentation / @agentick/core / UseComStateOptions

Interface: UseComStateOptions ​

Defined in: core/src/hooks/com-state.ts:26

Options for useComState.

Extends ​

Properties ​

persist? ​

optional persist: boolean

Defined in: core/src/hooks/runtime-context.ts:50

Whether to include this entry in session snapshots.

When true (default), the value is saved in session snapshots and restored when the session is loaded from store.

Set to false for large datasets, frequently-changing data, or values already persisted elsewhere.

Default ​

ts
true

Inherited from ​

HookPersistenceOptions.persist

Released under the ISC License.