diff --git a/package/src/composables/useVueFlow.ts b/package/src/composables/useVueFlow.ts index 00c84b46..8f924b04 100644 --- a/package/src/composables/useVueFlow.ts +++ b/package/src/composables/useVueFlow.ts @@ -31,10 +31,10 @@ export class Storage { public create(id: string, options?: Partial) { const store = useStore(options) const flow: UseVueFlow = { - id, - store, ...(store as any), ...toRefs(store.state), + id, + store, } this.set(id, flow) return flow