Skip to content

Why can not access 'type' in EdgeProps when i create custom edge component using '@xyflow/react'? #4595

Closed Answered by bcakmakoglu
peanudge asked this question in Q&A
Discussion options

You must be logged in to vote

An alternative way to get the edge type would be to use getEdge

const edge = getEdge(edgeId)

const type = edge.type

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by peanudge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants