Skip to content

Fix stale archive filter results - #302

Draft
spencerc99 wants to merge 1 commit into
mainfrom
cx/fix-archive-filter-race
Draft

Fix stale archive filter results#302
spencerc99 wants to merge 1 commit into
mainfrom
cx/fix-archive-filter-race

Conversation

@spencerc99

Copy link
Copy Markdown
Owner

Summary

  • ignore archive event responses that finish after a newer filter or refresh request begins
  • add deterministic out-of-order component coverage for stale success and stale errors

Root cause

Each request could update event state and fetch bookkeeping after it awaited its network response, even if a later filter request had already replaced the active context.

Validation

  • bun run build-packages
  • bun run test --run (341 tests)
  • bun run build in extension/website

bun run lint in extension/website reaches TypeScript successfully but then fails because the installed ESLint 9 toolchain cannot find a flat config.

Integration

origin/feat/installation-multiscreen extracts this same fetch logic to useArchiveEvents; apply the same generation guard there when integrating so the refactor does not reintroduce the race.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying we-were-online-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3e2808e
Status: ✅  Deploy successful!
Preview URL: https://c6b84da7.we-were-online-website.pages.dev
Branch Preview URL: https://cx-fix-archive-filter-race.we-were-online-website.pages.dev

View logs

@spencerc99

Copy link
Copy Markdown
Owner Author

Code review

No issues found. Checked for bugs and project-instruction compliance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant