Skip to content

fix(web): cancel deferred article navigation on teardown - #214

Merged
itscheems merged 1 commit into
mainfrom
codex/article-navigation-cleanup
Nov 6, 2026
Merged

itscheems merged 1 commit into
mainfrom
codex/article-navigation-cleanup

Conversation

@itscheems

Copy link
Copy Markdown
Owner

Scheduled heading scrolls are now cancelled when their provider unmounts or a newer reading destination replaces them. Destination emphasis keeps its existing cleanup behavior.

The reader teardown regression reproduced a pending animation frame after unmount. Tracking and cancelling that frame resolves the failure without changing the assertion or increasing timeouts.

Validation:

  • All 871 tests in the previously failing CI shard passed locally with pnpm --dir web test --shard=2/2 --maxWorkers=2.
  • All 14 focused reader and editor navigation tests passed.
  • Web build, lint, and formatting checks passed.

Closes #213

@itscheems itscheems added kind/bug Bug fixes moment Moment project codex Created by Codex labels Nov 6, 2026
@itscheems itscheems self-assigned this Nov 6, 2026
@itscheems
itscheems merged commit 73038cd into main Nov 6, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex Created by Codex kind/bug Bug fixes moment Moment project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(web): cancel pending article navigation on teardown

1 participant