Repository navigation
fix(oneko): ClientRouter 换页后重建像素猫 - #117
Merged
Merged
Conversation
ClientRouter swaps body DOM and drops the body-mounted Oneko nodes without transition:persist. Replace the one-shot __yublogOnekoBooted boot with createOneko + ensure on every astro:page-load when the cat is missing. Update Oneko docs and CHANGELOG.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Format BaseLayout for CI. Register astro:page-load once via __yublogOnekoEnsureBound, and serialize recreate with an inflight promise so concurrent ensureOneko calls cannot mount duplicate cats.
Add a brief comment in the destroy catch so ESLint no-empty passes, matching nearby storage/theme catch style.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
body、未标transition:persist的猫节点,而旧的__yublogOnekoBooted仍阻止再次挂载。createOneko,并在每次astro:page-load上若猫缺失则destroy旧句柄并重建;页脚data-oneko-toggle仍由引擎同步。docs/Oneko 像素猫.md、相关索引文档与 CHANGELOG「未发布」修复条目。测试
pnpm exec tsc --noEmit通过请用户合并;本 PR 不自动合并。