aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Media/Cover/HoverCover.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-18 09:14:28 +0000
committerFuwn <[email protected]>2026-04-18 09:14:28 +0000
commitb7ed85e23ff89a41cd43aed44fbc6fa2c54f9aa2 (patch)
tree2e71c94f09a217a44eb1d861293e290b41825dee /src/lib/Media/Cover/HoverCover.svelte
parentfix(settings): catch errors in settings sync fetch chains (diff)
downloaddue.moe-b7ed85e23ff89a41cd43aed44fbc6fa2c54f9aa2.tar.xz
due.moe-b7ed85e23ff89a41cd43aed44fbc6fa2c54f9aa2.zip
fix(notification): clear auto-dismiss timer on component destroy
onMount scheduled a setTimeout to auto-dismiss the notification after notification.duration ms but never stored the handle. If the component was destroyed before the timer fired (parent unmount, navigation), the timer still ran and called remove() on a stale closure. Capture the timer id and clear it from the onMount cleanup callback.
Diffstat (limited to 'src/lib/Media/Cover/HoverCover.svelte')
0 files changed, 0 insertions, 0 deletions