Skip to content

Ignore stale documentation responses after route or locale changes #22

Open

Description

@LunaStev

Problem

DocsPage.load reads reactive path/locale values across several awaits and writes shared state without cancellation or a generation check. Rapid navigation can combine an old document response with the new route and SEO metadata.

Evidence / regression scenario

Code-derived race scenario, not yet reproduced in a production browser.

Code references

Audit baseline: 50eb207.

Completion criteria

  • Capture a consistent path/locale snapshot per load and allow only the newest request to publish document, navigation, loading and error state.
  • Prevent superseded work from changing canonical URLs or hreflang metadata.
  • Add deferred-response tests for A -> B and en -> ja with reverse completion order.
  • Keep genuine English fallback behavior and initial embedded public data consumption.

Scope and dependencies

Difficulty: medium.

Documentation page state only, independent of WaveEditor async ordering in #1.

Backlog index: #12. Keep the change limited to this issue and include focused verification in the pull request.

Activity

  1. added
    bug
    help wanted
    frontend
    priority medium
    needs testing
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrontendhelp wantedneeds testingpriority medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions