From 874b85e46a7507583836c6929bb72ccae64acd0a Mon Sep 17 00:00:00 2001 From: Andrew Hayward Date: Thu, 15 Feb 2024 16:07:11 +0000 Subject: [PATCH] Resolving `exhaustive-deps` issue --- storybook/sidebar.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storybook/sidebar.js b/storybook/sidebar.js index d0c60a27d2c4ee..b540ee9ac0e3fc 100644 --- a/storybook/sidebar.js +++ b/storybook/sidebar.js @@ -50,8 +50,7 @@ function useIcons( item ) { ) : null ); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [ item.id ] ); + }, [ api, item.children, item.isComponent ] ); } function Label( { item } ) {