From 46b0ba68379558f380c445483f88abd8f7cf736a Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Wed, 25 Nov 2026 15:33:19 +0100 Subject: [PATCH] fix(site): guard category scroll spy after unmount (#5297) * fix(site): recover stale tabs after deploys and guard category scroll spy - Reload once when a lazy chunk from an older deploy fails to load (vite:preloadError), and when VitePress swaps in a new hashmap.json and loads the new deploy's page chunk into the old app. The second case caused 'useIconStyleContext must be used with useIconStyleProvider' and 'useExternalLibs must be used with externalLibs context', because the new chunk brings its own copy of the theme with new Symbol injection keys. - Guard the category list scroll spy against running after unmount and clear its pending timeout. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01G9u8FfuEnhMTXSiKPJV3kb * revert(site): drop deploy recovery in favor of Vercel skew protection Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01G9u8FfuEnhMTXSiKPJV3kb --------- Co-authored-by: Claude --- docs/.vitepress/theme/components/icons/CategoryList.vue | 9 +++++++-- docs/.vitepress/theme/composables/useActiveAnchor.ts | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/theme/components/icons/CategoryList.vue b/docs/.vitepress/theme/components/icons/CategoryList.vue index 9aeac8178..8ebfc161f 100644 --- a/docs/.vitepress/theme/components/icons/CategoryList.vue +++ b/docs/.vitepress/theme/components/icons/CategoryList.vue @@ -1,5 +1,5 @@