fix deck
This commit is contained in:
parent
1157298eb8
commit
1669f5b265
3 changed files with 3 additions and 2 deletions
|
|
@ -109,6 +109,8 @@ export class Storage<T extends StateDef> {
|
|||
const stop = watch(this.reactiveState[key], val => {
|
||||
valueRef.value = val;
|
||||
});
|
||||
|
||||
// NOTE: vueコンポーネント内で呼ばれない限りは、onUnmounted は無意味なのでメモリリークする
|
||||
onUnmounted(() => {
|
||||
stop();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue