update(store): static id for store state

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-04 15:42:18 +01:00
parent aa72527ad2
commit 0fcf8bbeaa
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ import { NodeExtent, GraphNode, TranslateExtent } from './node'
import { D3Selection, D3Zoom, D3ZoomHandler, InitD3ZoomPayload } from './zoom'
import { FlowHooks } from './hooks'
export interface FlowState extends Omit<FlowOptions, 'elements'> {
export interface FlowState extends Omit<FlowOptions, 'elements' | 'id'> {
hooks: FlowHooks
instance?: FlowInstance
@@ -89,5 +89,5 @@ export interface FlowGetters {
getSelectedNodes: ComputedRef<GraphNode[]>
}
export type Store = { state: FlowState } & ToRefs<FlowState> & FlowActions & FlowGetters
export type Store = { id: string; state: FlowState } & ToRefs<FlowState> & FlowActions & FlowGetters
export type FlowStore = UnwrapNestedRefs<Store>