Skip to content

Commit 557a679

Browse files
committed
chore(core): cleanup vueflow cmp
1 parent 5798cc5 commit 557a679

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/core/src/container/VueFlow/VueFlow.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import { onUnmounted, provide } from 'vue'
44
import Viewport from '../Viewport/Viewport.vue'
55
import A11yDescriptions from '../../components/A11y/A11yDescriptions.vue'
66
import type { FlowEmits, FlowProps, FlowSlots, VueFlowStore } from '../../types'
7-
import { useVueFlow, useWatchProps } from '../../composables'
8-
import { useHooks } from '../../store'
97
import { Slots } from '../../context'
8+
import { useOnInitHandler } from '../../composables/useOnInitHandler'
9+
import { useWatchProps } from '../../composables/useWatchProps'
10+
import { useVueFlow } from '../../composables/useVueFlow'
11+
import { useHooks } from '../../store/hooks'
1012
1113
const props = withDefaults(defineProps<FlowProps>(), {
1214
snapToGrid: undefined,
@@ -64,6 +66,8 @@ const dispose = useWatchProps({ modelValue, nodes: modelNodes, edges: modelEdges
6466
6567
useHooks(emit, hooks)
6668
69+
useOnInitHandler()
70+
6771
// slots will be passed via provide
6872
// this is to avoid having to pass them down through all the components
6973
// as that would require a lot of boilerplate and causes significant performance drops

0 commit comments

Comments
 (0)