Skip to content

Commit

Permalink
Add preview ref api for Node
Browse files Browse the repository at this point in the history
  • Loading branch information
spellforce committed Mar 21, 2023
1 parent cc2da18 commit 019947c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-arborist/src/components/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function TreeProvider<T>({
useMemo(() => {
updateCount.current += 1;
api.update(treeProps);
}, [...Object.values(treeProps), state.nodes.open]);
}, [...Object.values(treeProps), state.nodes.open, state.dnd.parentId]);

/* Expose the tree api */
useImperativeHandle(imperativeHandle, () => api);
Expand Down

0 comments on commit 019947c

Please sign in to comment.