InteractionStore

Where elements keep a reader's interaction state, one value per element, keyed by the element's content hash.

@internote/canvas-sdkInterface
On this page
import { InteractionStore } from '@internote/canvas-sdk';

Keying by content means the same authored element finds its state again after a reload. The host supplies the implementation; keyValueFromInteractionStore adapts one into the KeyValueStorage an environment is handed.

#Fields

getInteractionRequired
Reads what an element stored, or null when it stored nothing.
GetInteraction
saveInteractionRequired
Replaces what an element stored.
SaveInteraction

Declared in packages/canvas-sdk/src/storage/interaction.ts:41.

Last updated