GraphReFlyTS

API Reference

collectionSnapshotKey()

Build the default D161 snapshot key for a storage prefix.

Import

import { collectionSnapshotKey } from "@graphrefly/ts/storage";

Signature

function collectionSnapshotKey(storagePrefix = "reactive-collection"): string

Parameters

ParameterTypeDescription
storagePrefixunknownstorage prefix value used by the helper.

Returns

The stable key or reference string.

Example

import { collectionSnapshotKey } from "@graphrefly/ts/storage";

Source

packages/ts/src/storage/reactive-collection.ts