Skip to content

ThingAdapterOptions

Defined in: index.ts:11

Options for createThingStore and createThingStoreSync.

PropertyTypeDescriptionDefined in
atom?anyUse an existing Atom<T> instead of creating one. Lets vanilla thi.ng code (cursors, views, additional watches) interoperate with the action-driven state — same store, two surfaces.index.ts:17
history?boolean | { maxLen?: number; }Wrap the atom in History for undo/redo. Pass true for default settings or an object with maxLen to customize the undo-stack depth. When enabled, every dispatched action becomes an undoable step.index.ts:23