collectionSnapshotKey()
Build the default D161 snapshot key for a storage prefix.
Import
Section titled “Import”import { collectionSnapshotKey } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function collectionSnapshotKey(storagePrefix = "reactive-collection"): stringParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
storagePrefix | unknown | storage prefix value used by the helper. |
Returns
Section titled “Returns”The stable key or reference string.
Example
Section titled “Example”import { collectionSnapshotKey } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/reactive-collection.ts