chore(changelog): update

This commit is contained in:
moklick
2024-03-14 16:18:53 +01:00
parent b1c30ee653
commit e0f7f0a01f
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
- fix useNodesData: handle invalid node id thanks @saswatax
- fix forwardRef: use custom fixForwardRef function
- refactor intersection helpers to use passed node value
## 12.0.0-next.11

View File

@@ -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 =
isNode(nodeOrRect) && nodeHasDimensions(nodeOrRect)
? nodeOrRect