From 61cf1909e63937db2b09bd16c5e87684b3e5a534 Mon Sep 17 00:00:00 2001 From: Felix Feng Date: Sun, 24 Nov 2024 20:45:13 +0800 Subject: [PATCH] fix --- packages/heading/src/react/hooks/useTocSideBar.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/heading/src/react/hooks/useTocSideBar.ts b/packages/heading/src/react/hooks/useTocSideBar.ts index f6556fc483..a1607d77b0 100644 --- a/packages/heading/src/react/hooks/useTocSideBar.ts +++ b/packages/heading/src/react/hooks/useTocSideBar.ts @@ -93,8 +93,7 @@ export const useTocSideBar = ({ onContentScroll({ id, behavior, el }); }, - // eslint-disable-next-line react-hooks/exhaustive-deps - [] + [editor, onContentScroll] ); return {