Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

fix: stop MarkdownViewer initialization after component disposal

Open PathGao opened this issue 4 months ago • 0 comments

MarkdownViewer starts asynchronous imports and initialization from onMount. If the component unmounts while an await is pending, it can restore tabs, open files, or leave newly registered Tauri listeners behind after teardown.\n\nTrack disposal through the initialization lifecycle; abandon pending work before state/file actions and immediately unlisten registrations that finish after disposal.

PathGao avatar Jul 24 '26 21:07 PathGao