Skip to content

Commit

Permalink
[hooks/observer][s]: removed unneded comment
Browse files Browse the repository at this point in the history
  • Loading branch information
olayway committed Jun 7, 2022
1 parent 5524c73 commit ba190c7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions site/hooks/useHeadingsObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ const useHeadingsObserver = () => {
};
}, []);

/* On initial render activeHeading will be `null`, since the observer
* has not been instantiated yet. However, we still want to highlight
* the current heading in the ToC based on the current url. */
useEffect(() => {
if (!activeHeading) {
return;
Expand Down

0 comments on commit ba190c7

Please sign in to comment.