Skip to content

Commit 019947c

Browse files
committed
Add preview ref api for Node
1 parent cc2da18 commit 019947c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-arborist/src/components/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function TreeProvider<T>({
5757
useMemo(() => {
5858
updateCount.current += 1;
5959
api.update(treeProps);
60-
}, [...Object.values(treeProps), state.nodes.open]);
60+
}, [...Object.values(treeProps), state.nodes.open, state.dnd.parentId]);
6161

6262
/* Expose the tree api */
6363
useImperativeHandle(imperativeHandle, () => api);

0 commit comments

Comments
 (0)