[hooks/observer][s]: removed unneded comment
This commit is contained in:
parent
5524c73614
commit
ba190c7f1e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue