Skip to content

Commit caf8b7b

Browse files
authored
Merge pull request #16329 from github/repo-sync
repo sync
2 parents ba4d739 + ed0aa06 commit caf8b7b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"davidanson.vscode-markdownlint",
2323
"bierner.markdown-preview-github-styles",
2424
"streetsidesoftware.code-spell-checker",
25-
"hubwriter.open-reusable"
25+
"docs.open-reusables"
2626
],
2727

2828
// Use 'forwardPorts' to make a list of ports inside the container available locally.

components/article/ClientSideHighlightJS.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ export default function ClientSideHighlightJS() {
6666
intersectionObserver.observe(element)
6767
}
6868
}
69+
70+
return () => {
71+
intersectionObserver.disconnect()
72+
}
6973
}, [asPath])
7074

7175
return null

0 commit comments

Comments
 (0)