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 2d14827 commit 3ec6aecCopy full SHA for 3ec6aec
packages/runtime/src/hooks/useSidebar.ts
@@ -60,6 +60,8 @@ function createInitialSidebar(
60
rawSidebarData: SidebarData,
61
activeMatcher: (link: string) => boolean,
62
) {
63
+ // do not modify singleton global sidebar - #2910
64
+ rawSidebarData = structuredClone(rawSidebarData);
65
const matchCache = new WeakMap<
66
| NormalizedSidebarGroup
67
| SidebarItem
0 commit comments