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 }}
This repository was archived by the owner on Dec 11, 2025. It is now read-only.
The toUnSignal function in packages/unuse/src/toUnSignal/index.ts creates a Vue effect for bidirectional sync without proper cleanup, causing a memory leak when Vue components are unmounted.
Location
Around lines 159-163 in packages/unuse/src/toUnSignal/index.ts, the effect() from alien-signals lacks cleanup:
Problem
The
toUnSignalfunction inpackages/unuse/src/toUnSignal/index.tscreates a Vue effect for bidirectional sync without proper cleanup, causing a memory leak when Vue components are unmounted.Location
Around lines 159-163 in
packages/unuse/src/toUnSignal/index.ts, theeffect()from alien-signals lacks cleanup:Proposed Solution
Capture the dispose function returned by
effect()and call it in anonUnmountedhook:References
Notes
Need to ensure
onUnmountedis available in the current context or use an alternative cleanup mechanism.