mirror of https://github.com/ANL-CEEESA/RELOG.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
621 B
22 lines
621 B
import type { Node } from '../types';
|
|
/**
|
|
* This hook returns an array of the current nodes. Components that use this hook
|
|
* will re-render **whenever any node changes**, including when a node is selected
|
|
* or moved.
|
|
*
|
|
* @public
|
|
* @returns An array of all nodes currently in the flow.
|
|
*
|
|
* @example
|
|
* ```jsx
|
|
*import { useNodes } from '@xyflow/react';
|
|
*
|
|
*export default function() {
|
|
* const nodes = useNodes();
|
|
*
|
|
* return <div>There are currently {nodes.length} nodes!</div>;
|
|
*}
|
|
*```
|
|
*/
|
|
export declare function useNodes<NodeType extends Node = Node>(): NodeType[];
|
|
//# sourceMappingURL=useNodes.d.ts.map
|