InteractionStore
Where elements keep a reader's interaction state, one value per element, keyed by the element's content hash.
@internote/canvas-sdkOn 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
getInteractionReads what an element stored, or
null when it stored nothing.GetInteractionsaveInteractionReplaces what an element stored.
SaveInteractionDeclared in packages/canvas-sdk/src/storage/interaction.ts:41.