chore(store): pass vueflow id to scope on each call

This commit is contained in:
braks
2022-08-30 22:16:10 +02:00
committed by Braks
parent bd4eb7cc54
commit 2beb48d4a5
@@ -124,7 +124,6 @@ export default (options?: FlowProps): VueFlowStore => {
vueFlow = storage.create(name, options)
if (scope) {
scope.vueFlowId = name
isParentScope = true
}
} else {
@@ -141,6 +140,8 @@ export default (options?: FlowProps): VueFlowStore => {
if (scope) {
provide(VueFlow, vueFlow)
scope.vueFlowId = vueFlow.id
if (isParentScope) {
// dispose of state values and storage entry
tryOnScopeDispose(() => {