• Przemyslaw Kaminski's avatar
    [Graph] doesn't flicker now at all! · 3a1dc8f0
    Przemyslaw Kaminski authored
    Turns out the issue was also at parent getting rerenders.
    So the trick is that I added an empty div with ref for parent node and,
    next to it, the Graph component pointing to that ref.
    Graph component calls react's usePortal with that parent ref and a small
    'createElement' div to hold sigma canvases.
    3a1dc8f0
Reactix.purs 6.61 KB