MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / useNodesState

Function useNodesState

packages/agentflow/src/__mocks__/reactflow.tsx:42–45  ·  view source on GitHub ↗
(initialNodes: any)

Source from the content-addressed store, hash-verified

40
41// Use React's useState to maintain stable references and prevent infinite loops
42export const useNodesState = (initialNodes: any) => {
43 const [nodes, setNodes] = React.useState(initialNodes || [])
44 return [nodes, setNodes, jest.fn()]
45}
46
47export const useEdgesState = (initialEdges: any) => {
48 const [edges, setEdges] = React.useState(initialEdges || [])

Callers 5

CanvasFunction · 0.90
AgentflowCanvasFunction · 0.90
MarketplaceCanvasV2Function · 0.90
MarketplaceCanvasFunction · 0.90
AgentflowCanvasFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected