feat: try to dispose states on unmount

Signed-off-by: bcakmakoglu <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
bcakmakoglu
2022-02-21 20:25:17 +01:00
committed by Braks
parent d835e4546c
commit c5b39d4588
10 changed files with 240 additions and 224 deletions
+4
View File
@@ -1,3 +1,4 @@
import useState from './state'
import {
CoordinateExtent,
EdgeChange,
@@ -304,5 +305,8 @@ export default (state: State, getters: ComputedGetters): Actions => {
setConnectionNodeId,
setInteractive,
setState,
$reset: () => {
setState(useState())
},
}
}