feat: add useStore and useHooks composables that provide default store/hooks

This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent 61dc9dea33
commit b2b1fe822f
27 changed files with 174 additions and 128 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { InjectionKey } from 'vue'
import { FlowHooks, FlowStore } from '~/types'
import { ElementId, FlowHooks, FlowStore } from '~/types'
export const Store: InjectionKey<FlowStore> = Symbol('store')
export const Hooks: InjectionKey<FlowHooks> = Symbol('hooks')
export const NodeIdContextKey: InjectionKey<string> = Symbol('NodeIdContext')
export const NodeIdContextKey: InjectionKey<ElementId> = Symbol('NodeIdContext')