Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

fix: prevent stale preview renders from replacing newer tab content

Open PathGao opened this issue 4 months ago • 0 comments

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.

PathGao avatar Jul 24 '26 21:07 PathGao