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.

After a backup and restore, problem to create new handles dynamically.

See original GitHub issue

Describe the Bug

My project is to create a custom node, this custom node contains a button that allows new handles to be created. This works fine, but when the flow is saved and restored, the new handles added to the same custom node are not connectable.

This error message appears until the node is deleted:

couldn't create edge for source handle id: dndnode_1649946748290_call_3_call_1649946788581; edge id: reactflow__edge-dndnode_1649946748290dndnode_1649946788581-dndnode_1649946778292

I already tried with this problem: #1641, but it did not solve my error, maybe I missed something

I noticed that the number of Handle I added and the number of handleBounds in the node are different after a restore, so I think this is a potential path to bug resolution. (You can see that on the screenshot)

Secondly, if a handle is removed, the edge remains and leads to errors, is it up to me to remove the edge programmatically?

https://user-images.githubusercontent.com/44874533/163425181-0cbc4572-30c2-47b2-a700-16ca2a30efbc.mp4

0 -> 26 sec : The main issue 26 -> the end : The second question

Your Example Website or App

Here is the codesandbox link to my code, if you want to test it yourself: https://codesandbox.io/s/react-flow-issue-add-handles-after-restoring-k4uwgg

Steps to Reproduce the Bug or Issue

  1. Go to the sandbox code link above
  2. Drag and drop a “Custom Node” and an “Output Node” (the sidebar is at the bottom of the stream).
  3. Click on the “+ Add” button to add handles, you can create as many handles as you want.
  4. Link the handles of the custom node with the output node, each handle does not need to be linked.
  5. After that save with the green button (download icon) in the upper right corner.
  6. Refresh the page with F5 or the container.
  7. You will see the correctly restored stream
  8. Now create a new handle or handles and try to connect them to the output source.

The bug occurs if you go to the console an error message appears every time you change the node.

If you try to delete or link the two nodes with the handles created before the restore, this works as it should.

Expected behavior

As a user I expected to add new handles to my custom node after a restore but I can’t connect the new handles to nodes.

Screenshots or Videos

bug_resolution_track

Platform

  • OS: Linux
  • Browser: Chrome
  • Version: 10.1.0 & 10.0.8

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
moklickcommented, Jun 15, 2022

Sorry guys! We will export the symbol you need for accessing the handleBounds!

1reaction
stanislav-grincommented, Jun 14, 2022

Thank you, @remibesset, for your help and suggestion! It works perfectly. Now this issue is not blocking me, though it would be better to have some kind of reliable documented API for this in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cove: Error: "VSS dynamic link library is not compatible" when ...
Error : "VSS dynamic link library is not compatible" when performing a backup or restore. BackupFP binary executable is updated instead of updating...
Read more >
CN101313283A - Method for dynamically exposing backup and ...
The restore environment is stored in a redundant array of independent disks ... After constituting the RAID volume, handle and proceed square frame...
Read more >
Automate and Centrally Manage Your Backups - Amazon AWS
You can create policy-driven backup plans, monitor the status of on-going backups, verify compliance, and find / restore backups, all using a ...
Read more >
Veritas NetBackup™ for VMware Administrator's Guide
The restore fails when the Windows restore host tries to mount the dynamic disk that was added after the first backup. Depending on...
Read more >
Back up user data with Auto Backup - Android Developers
On this page · Files that are backed up · Backup location · Backup schedule · Restore schedule · Enable and disable backup...
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