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.

all surrounding handles

See original GitHub issue

Hello

I am trying to build a custom node, with handels surrounding the entire surface. However, it seems like the library cannot handle when calculating handleIds on the run. Is this true or am i missing anything

Code:

 {[...Array(Math.round(containerRef?.current?.offsetWidth / 5) || 0).keys()].map(x => (
        <Handle
          style={{ ...handleStyle, left: 5 * x || 5, top: 0 }}
          type="source"
          id={`top${x}`}
          position={Position.Top}
        />
   ))}

The error occurs in ConnectionLine

Error: Uncaught TypeError: Cannot read property ‘find’ of null at ConnectionLine (ReactFlow.js:8994) at renderWithHooks (react-dom.development.js:14803) at updateFunctionComponent (react-dom.development.js:17034) at beginWork (react-dom.development.js:18610) at HTMLUnknownElement.callCallback (react-dom.development.js:188) at HTMLUnknownElement.wrapped (build.umd.js:956) at Object.invokeGuardedCallbackDev (react-dom.development.js:237) at invokeGuardedCallback (react-dom.development.js:292) at beginWork$1 (react-dom.development.js:23203) at performUnitOfWork (react-dom.development.js:22154)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Keanottesencommented, Aug 11, 2021

@jonra1993

You just need to make a custom node that is circular and the put an icon in the middle. The handles I guess should be on the top en button. And if it is like customer.io or something, they all should expand from the same point. So you can just make the handles go across the upper half and the lower half, and be invisible

0reactions
androdycommented, Sep 22, 2021

Same problem, if my array generates two or more handles, no error. But if is only one dynamic handle, this error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parts of a Door: Learn About the Anatomy of a Door
This post breaks down all the parts of a door so you can ... plates that can be found surrounding handles, thumb turns...
Read more >
Door Knob Surround - Etsy
Check out our door knob surround selection for the very best in unique or custom, handmade pieces from our drawer knobs & pulls...
Read more >
Interior/Exterior Door Handles at Lowes.com
At Lowe's, you'll find a wide assortment of door handles for both interior and exterior use. Secure your home with a keyed door...
Read more >
Handles Accessories | Quality Door Handles
Handles Accessories has been supplying quality front door handles to the world since 2005. We are proud to offer a wide range of...
Read more >
Parts of a Door Handle | Hunker
Door handle parts include the handle or lever, latches, strike plates and door knob locks. Most experts recommend that you use a deadbolt...
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