question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`onConnectEnd` getting triggered twice

See original GitHub issue

Describe the Bug

Instead of taking an edge out of an handle if we just click on a handle then the onConnectStart and onConnectEnd callbacks get triggered more than once

Your Example Website or App

https://codesandbox.io/s/sandpack-project-forked-bgb4z0?file=/App.js

Steps to Reproduce the Bug or Issue

  1. Click on a handle of node
  2. Do not take out an edge out of the handle
  3. The callbacks will get triggered more than once

Expected behavior

The callbacks should get executed only once as it was in the earlier version of React Flow.

Screenshots or Videos

https://user-images.githubusercontent.com/30779692/161759635-9c02d111-feec-4739-8cce-3bd12b6e9164.mov

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 99.0

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
moklickcommented, May 22, 2022

I added onClickConnectStart, onClickConnectEnd and onClickConnectStop for the upcoming release.

0reactions
moklickcommented, May 23, 2022

released in v10.3.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Triggered twice - When an event is added, updated
Hi, When an event is created (via OWA) in a calendar, the "When an event is added, updated or deleted (V3)" event is...
Read more >
Why is an event triggered twice when I am creating a link ...
The ConnectionsChangeComplete get called twice. Question here is why? I need to be able to capture the act that two nodes were connected...
Read more >
Events triggered twice #525 - jackmoore/colorbox - GitHub
Any event raised by colorbox eventually gets fired twice (even if you are binding to document). After some research, I found that it...
Read more >
Why is the onClick event triggered twice? - Stack Overflow
It is calling twice because button is inside a span and span has onclick="alert('Boem')" , hence when you trigger click on button then...
Read more >
Email Notification is triggering twice. - ServiceNow Community
Hello, I created a notification called 'Request Canceled' when the conditions are met request 'opened by user' is receiving two emails.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found