chore(store): pass vueflow id to scope on each call
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user