feat(svelte): reset store when component unmounts

This commit is contained in:
moklick
2023-03-14 12:05:36 +01:00
parent 608768fd5b
commit cca25a792b
4 changed files with 21 additions and 2 deletions
@@ -41,6 +41,10 @@
store.width.set(width);
store.height.set(height);
store.domNode.set(domNode);
return () => {
store.reset();
}
});
$: {