You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(svelte): useAskable.svelte.ts registers listeners without $effect — no automatic cleanup on unmount #267
In packages/svelte/src/useAskable.svelte.ts, focus and clear event listeners are registered synchronously at the top level of the function body, outside any $effect. A destroy() function exists to remove them, but callers must invoke it manually — typically in onDestroy. If they forget, listeners accumulate.
Current code
ctx.on('focus',handleFocus);// registered at call time, not in $effectctx.on('clear',handleClear);
Cleanup only happens if the caller explicitly calls destroy():
Activity