keyValueFromInteractionStore
Adapts an InteractionStore into a KeyValueStorage scoped to one element hash.
@internote/canvas-sdkOn this page
import { keyValueFromInteractionStore } from '@internote/canvas-sdk';Lets the same backend serve both the built-in interaction state and the key-value store environments write to. Every key is stored inside one record under the element hash, as { [key]: value }, so a write reads the record, changes one key and saves it back.
#Signature
(store: InteractionStore, elementHash: string): KeyValueStorage#Parameters
storeThe interaction store the host provides.
elementHashThe element's content hash, which the record is kept under.
Declared in packages/canvas-sdk/src/storage/interaction.ts:123.