feat(core): add missing styles warning

This commit is contained in:
braks
2024-05-28 19:18:23 +02:00
committed by Braks
parent 9eb5769e0c
commit 8a8c8f50bf
4 changed files with 28 additions and 1 deletions
@@ -11,6 +11,7 @@ import { useVueFlow } from '../../composables/useVueFlow'
import { useHooks } from '../../store/hooks'
import EdgeRenderer from '../EdgeRenderer/EdgeRenderer.vue'
import NodeRenderer from '../NodeRenderer/NodeRenderer.vue'
import { useStylesLoadedWarning } from '../../composables/useStylesLoadedWarning'
const props = withDefaults(defineProps<FlowProps>(), {
snapToGrid: undefined,
@@ -70,6 +71,8 @@ useHooks(emit, hooks)
useOnInitHandler()
useStylesLoadedWarning()
// slots will be passed via provide
// this is to avoid having to pass them down through all the components
// as that would require a lot of boilerplate and causes significant performance drops