nodeSnapshot()
Read a node cache without activating it.
Import
Section titled “Import”import { nodeSnapshot } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function nodeSnapshot(node: Node<T>): T | undefinedParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
node | Node<T> | Node to observe, adapt, or connect. |
Returns
Section titled “Returns”A T | undefined value.
Example
Section titled “Example”import { nodeSnapshot } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/store.ts