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.

Clicking connected dots will trigger onConnect event

See original GitHub issue

🐛 Bug Report

As title says.

console output:

Warning: Encountered two children with the same key, `reactflow__edge-1-1`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
    in g (created by EdgeRenderer)
    in svg (created by EdgeRenderer)
    in EdgeRenderer (created by GraphView)
    in div (created by FlowRenderer)
    in FlowRenderer (created by GraphView)
    in GraphView (created by ReactFlow)
    in StoreProvider (created by ReactFlowWrapper)
    in ReactFlowWrapper (created by ReactFlow)
    in div (created by ReactFlow)
    in ReactFlow (at App.js:49)
    in div (created by Context.Consumer)
    in EmotionCssPropInternal (at App.js:38)
    in App (at src/index.js:9)
    in StrictMode (at src/index.js:8)

To Reproduce

  1. connect two nodes
  2. click any dot on one of the nodes

Expected behavior

Should not trigger onConnect event

Link to repl or repo

https://codesandbox.io/s/react-flow559-ddxhf

envinfo

package version: 6.1.1 OS: 64bit Mac OS X 10.14.6 18G6020

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chrtzecommented, Oct 7, 2020

You are right, in that case we should think about adding a threshold for checking if the user has dragged. Thanks for clarifying!

0reactions
chrtzecommented, Nov 3, 2020

released in 7.0.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Props List API - React Flow
This is the list of props you can pass to the ReactFlow component. ... Called after user stops a connection by click (called...
Read more >
force client disconnect from server with socket.io and nodejs
emit('disconnect') triggers the disconnection event on the server, but does not effectively disconnect the client. The client is not aware of the disconnection....
Read more >
How to Use Kafka Connect - Getting Started
This document provides concepts and instructions for getting started with Kafka Connect.
Read more >
Connect Dots in After Effects - YouTube
After Effects Beginners Course ▽https://www.domestika.org/en/courses/2207-fundamentals-of-animation-in-after-effects/tierneytv A quick and ...
Read more >
Windows Task Scheduler: Trigger an Event When Internet ...
Give your task a name in the General tab, and then click Triggers and then click New. display message on connect. In the...
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