Skip to content

events prop of nodes/edges to be deprecated #1541

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

You must be logged in to vote

I notice that events will be removed during node/edge config.

Yes, in the next major version this object will not exist anymore.

So using the methods from the useVueFlow is the right way in the future?

Either those or you can bind events directly to <VueFlow>, for example <VueFlow @node-click="onNodeClick" />

I'm curious on why did we make this change?

Functions are not properly convertible into JSON, therefore any of the existing options that currently allow functions will be removed/replaced with something that is convertible to JSON.

Another question is - if we used different types of nodes and different click handlers for each of them, then should it now be combined into a sing…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bcakmakoglu
Comment options

Answer selected by harshaktg
@harshaktg
Comment options

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