feat(svelte): reset store when component unmounts
This commit is contained in:
@@ -41,6 +41,10 @@
|
||||
store.width.set(width);
|
||||
store.height.set(height);
|
||||
store.domNode.set(domNode);
|
||||
|
||||
return () => {
|
||||
store.reset();
|
||||
}
|
||||
});
|
||||
|
||||
$: {
|
||||
|
||||
Reference in New Issue
Block a user