Closed LehanChancetop closed 3 weeks ago
I want to get "nodeLookup" form useStoreApi() ,but it get undefined. "getNodeRect", "getInternalNode" have the same problem form useReactFlow()
https://codesandbox.io/p/sandbox/objective-brahmagupta-g4jd9q?file=%2FResizeRotateNode.js%3A48%2C46
index.js
<StrictMode> <ReactFlowProvider> <App /> </ReactFlowProvider> </StrictMode>
ResizeRotateNode.js
const { getNodeRect, getInternalNode, getNodes } = useReactFlow(); console.log("useReactFlow::", getNodeRect, getInternalNode, getNodes); const state = useStoreApi(); console.log("nodeLookup", state.getState().nodeLookup);
getNodeRect, getInternalNode,nodeLookup is undefined
I want use "nodeLookup" form state
No response
nodeLookup (and getInternalNode) is only available in v12 (package name 'xyflow/react'). The example uses v11 (package name 'reactflow').
nodeLookup
getInternalNode
Describe the Bug
I want to get "nodeLookup" form useStoreApi() ,but it get undefined. "getNodeRect", "getInternalNode" have the same problem form useReactFlow()
Your Example Website or App
https://codesandbox.io/p/sandbox/objective-brahmagupta-g4jd9q?file=%2FResizeRotateNode.js%3A48%2C46
Steps to Reproduce the Bug or Issue
index.js
ResizeRotateNode.js
getNodeRect, getInternalNode,nodeLookup is undefined
Expected behavior
I want use "nodeLookup" form state
Screenshots or Videos
No response
Platform
Additional context
No response