MCPcopy Create free account
hub / github.com/liveblocks/liveblocks / addNode

Method addNode

packages/liveblocks-react-flow/src/node.ts:61–61  ·  view source on GitHub ↗

Adds a node. If a node with the same ID already exists, it is replaced.

(node: N)

Source from the content-addressed store, hash-verified

59
60 /** Adds a node. If a node with the same ID already exists, it is replaced. */
61 addNode(node: N): void;
62 /** Adds multiple nodes. Existing nodes with the same IDs are replaced. */
63 addNodes(nodes: N[]): void;
64 /** Updates a node by merging a partial object. No-op if the node does not exist. */

Callers 5

_attachFunction · 0.80
addNodesFunction · 0.80
runFlowchartAgentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected