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
+1 -1
View File
@@ -97,7 +97,7 @@ export default (opts?: FlowOptions): State => {
applyDefault: true,
vueFlowVersion: typeof __VUE_FLOW_VERSION__ !== 'undefined' ? __VUE_FLOW_VERSION__ : '-',
}
} as State
if (opts) {
if (typeof opts.panOnScroll !== 'undefined') state.panOnScroll = opts.panOnScroll