feat(nodes): Pass node slots as injections to wrapper
* Avoids drilling slots which causes huge performance issues when 100+ nodes are present due to re-binding of props on each level
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { InjectionKey } from 'vue'
|
||||
import { InjectionKey, Slots as TSlots } from 'vue'
|
||||
import { UseVueFlow } from '~/types'
|
||||
|
||||
export const VueFlow: InjectionKey<UseVueFlow> = Symbol('vueFlow')
|
||||
export const NodeId: InjectionKey<string> = Symbol('nodeId')
|
||||
export const Slots: InjectionKey<TSlots> = Symbol('slots')
|
||||
|
||||
Reference in New Issue
Block a user