Skip to content

fix: prevent stale preview renders from replacing newer tab content #253

Description

@PathGao

The split/edit preview debounce invokes render_markdown asynchronously, then writes its result without confirming that the active tab and raw content still match the request. A delayed render can replace a newer edit or a different active tab.\n\nGive each preview render request a revision, cancel pending timers in the effect cleanup, and discard stale completions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions