@melt-ui/svelte
Advanced tools
Comparing version 0.41.1 to 0.41.2
@@ -19,2 +19,3 @@ import { onDestroy } from 'svelte'; | ||
const unsubscribe = () => { | ||
// console.log('dfu unsubscribing'); | ||
// Call all of the unsubscribe functions from the previous run of the function | ||
@@ -30,3 +31,13 @@ unsubscribers.forEach((fn) => fn()); | ||
onDestroy(unsubscribe); | ||
return derivedStore; | ||
const subscribe = (...args) => { | ||
const unsub = derivedStore.subscribe(...args); | ||
return () => { | ||
unsub(); | ||
unsubscribe(); | ||
}; | ||
}; | ||
return { | ||
...derivedStore, | ||
subscribe, | ||
}; | ||
} |
{ | ||
"name": "@melt-ui/svelte", | ||
"version": "0.41.1", | ||
"version": "0.41.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "exports": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
593494
13738