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 a342e61 commit 4f63b9f
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, state.dnd.parentId]);
}, [...Object.values(treeProps), state.nodes.open]);

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

0 comments on commit 4f63b9f

Please sign in to comment.