Replies: 2 comments 5 replies
-
I did want to mention I'm using v12, if that makes a difference. I also noticed #3800 is having the same problem. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I got this to work with a The same seems to work in v12 as well. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm dynamically adding and removing custom source Handles from a node. The custom node renders multiple divs using flex items with
space-around
positioning. The handles are rendered as a child of those flex items. This allows me to nicely position the handles using flexbox instead of creating custom JS positioning logic.However, when I dynamically add or remove Handles, the existing connection endpoint locations (SVG endpoints) sometimes don't update. I've tried using
useUpdateNodeInternals
, but it doesn't seem to do anything. The only way I can get it to re-render is to change a connection to a target handle.Screen.Recording.2024-01-31.at.2.06.03.PM.mov
Here's excerpts from the code to illustrate. Any idea why I'm getting invalid intermittent behavior?
Beta Was this translation helpful? Give feedback.
All reactions