Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Nov 24, 2024
1 parent 64f5940 commit 61cf190
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/heading/src/react/hooks/useTocSideBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ export const useTocSideBar = ({

onContentScroll({ id, behavior, el });
},
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
[editor, onContentScroll]
);

return {
Expand Down

0 comments on commit 61cf190

Please sign in to comment.