Skip to content

Commit 61cf190

Browse files
committed
fix
1 parent 64f5940 commit 61cf190

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/heading/src/react/hooks/useTocSideBar.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ export const useTocSideBar = ({
9393

9494
onContentScroll({ id, behavior, el });
9595
},
96-
// eslint-disable-next-line react-hooks/exhaustive-deps
97-
[]
96+
[editor, onContentScroll]
9897
);
9998

10099
return {

0 commit comments

Comments
 (0)