diff --git a/packages/react-arborist/src/components/provider.tsx b/packages/react-arborist/src/components/provider.tsx index 532309c..60b8899 100644 --- a/packages/react-arborist/src/components/provider.tsx +++ b/packages/react-arborist/src/components/provider.tsx @@ -57,7 +57,7 @@ export function TreeProvider({ 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);