refactor: replace useStore with useVueFlow

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 46a76b783e
commit a604dd8ab1
17 changed files with 38 additions and 37 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import useStore from './useStore'
import useVueFlow from './useVueFlow'
import { getHostForElement } from '~/utils'
import { Connection, ConnectionMode, HandleType, FlowStore, ValidConnectionFunc } from '~/types'
@@ -67,7 +67,7 @@ const resetRecentHandle = (hoveredHandle: Element): void => {
hoveredHandle?.classList.remove('vue-flow__handle-connecting')
}
export default (store: FlowStore = useStore()) =>
export default (store: FlowStore = useVueFlow().store) =>
(
event: MouseEvent,
handleId: string,