We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1b15f3 commit 5940a6bCopy full SHA for 5940a6b
web/project-site/src/components/TableOfContents.tsx
@@ -29,7 +29,10 @@ export function TableOfContents() {
29
};
30
});
31
32
- setHeadings(items);
+ // Update headings state in a microtask to avoid cascading renders
33
+ queueMicrotask(() => {
34
+ setHeadings(items);
35
+ });
36
37
const observer = new IntersectionObserver(
38
(entries) => {
0 commit comments