GraphReFlyTS

API Reference

nodeSnapshot()

Read a node cache without activating it.

Import

import { nodeSnapshot } from "@graphrefly/ts/adapters";

Signature

function nodeSnapshot(node: Node<T>): T | undefined

Parameters

ParameterTypeDescription
nodeNode<T>Node to observe, adapt, or connect.

Returns

A T | undefined value.

Example

import { nodeSnapshot } from "@graphrefly/ts/adapters";

Source

packages/ts/src/adapters/store.ts