You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question
In the initial situation where there are no children in the root and topDepth is greater than 0, if you add children to the root through addChildData, the link is not drawn.
At CodePen, the root circle is drawn first no matter what the topDepth is...
Anyway here is my CodePen. https://codepen.io/nyakvzry-the-encoder/pen/ByBxbwp
If you set topDepth to 0 and press the button, the link is drawn. But if you set topDepth to 1 and press the button, you can see that the link is not drawn.
Question
In the initial situation where there are no children in the root and topDepth is greater than 0, if you add children to the root through addChildData, the link is not drawn.
Below is part of the code in my useLayoutEffect.
And this is simple button to add nodes by addChildData methods.
Environment (if applicable)
NEXT 14 / REACT 18
Additional context
2025-01-14.5.14.51.mov
The text was updated successfully, but these errors were encountered: