chore(changelog): update
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
- fix useNodesData: handle invalid node id thanks @saswatax
|
- fix useNodesData: handle invalid node id thanks @saswatax
|
||||||
- fix forwardRef: use custom fixForwardRef function
|
- fix forwardRef: use custom fixForwardRef function
|
||||||
|
- refactor intersection helpers to use passed node value
|
||||||
|
|
||||||
## 12.0.0-next.11
|
## 12.0.0-next.11
|
||||||
|
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ export function useReactFlow<NodeType extends Node = Node, EdgeType extends Edge
|
|||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|
||||||
const getNodeRect = useCallback((nodeOrRect: NodeType | { id: Node['id'] }): Rect | null => {
|
const getNodeRect = useCallback((nodeOrRect: NodeType | { id: NodeType['id'] }): Rect | null => {
|
||||||
const node =
|
const node =
|
||||||
isNode(nodeOrRect) && nodeHasDimensions(nodeOrRect)
|
isNode(nodeOrRect) && nodeHasDimensions(nodeOrRect)
|
||||||
? nodeOrRect
|
? nodeOrRect
|
||||||
|
|||||||
Reference in New Issue
Block a user