Markpad
Markpad copied to clipboard
fix: stop MarkdownViewer initialization after component disposal
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.