feat: Add instance to store
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -54,6 +54,7 @@ export default function flowStore(
|
||||
actions: {
|
||||
setElements(elements) {
|
||||
const { nextNodes, nextEdges } = parseElements(elements, this.nodes, this.edges, this.nodeExtent)
|
||||
this.elements = elements
|
||||
this.nodes = nextNodes
|
||||
this.edges = nextEdges
|
||||
},
|
||||
|
||||
@@ -75,6 +75,7 @@ export const initialState = (): FlowState => ({
|
||||
isReady: false,
|
||||
hooks: createHooks(),
|
||||
storageKey: undefined,
|
||||
instance: undefined,
|
||||
|
||||
vueFlowVersion: typeof __VUE_FLOW_VERSION__ !== 'undefined' ? __VUE_FLOW_VERSION__ : '-',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user