Skip to content

Commit

Permalink
NavigationItem: add missing deps to useNavigationTreeItem useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Jun 9, 2022
1 parent 56df22d commit 47f5650
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ export const useNavigationTreeItem = ( itemId, props ) => {
return () => {
removeItem( itemId );
};
}, [ activeMenu, search ] );
}, [
activeMenu,
search,
addItem,
itemId,
props,
group,
menu,
removeItem,
] );
};

0 comments on commit 47f5650

Please sign in to comment.