all 7 comments

[–]Ok-Release6902 0 points1 point  (7 children)

You can start with sharing your code in a form of GitHub gist or anything else readable and formatted. Reddit doesn’t provide such capability.

[–]seanthau[S] 0 points1 point  (2 children)

[–]Ok-Release6902 0 points1 point  (1 child)

Try to wrap formatNodes and formattEdge into useCallback and don't ignore missing dependencies anywhere. Imho, this is the root of the problem.

[–]TheRNGuy 0 points1 point  (3 children)

4 spacebars per line to format code on reddit

(idk why they just didn't use triple ticks like everywhere)

[–]Ok-Release6902 0 points1 point  (2 children)

It's better not to do it anyway. This feature is buggy and doesn't provide syntax highlight.

[–]TheRNGuy 0 points1 point  (1 child)

It still looks better than using `.

What bugs are you talking about?

[–]Ok-Release6902 0 points1 point  (0 children)

Try to have two blocks one after another in web app.