Adding too many nodes too fast leads to failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • Developer Tools

      Problem Statement/Rationale

      Steps to Reproduce

      Keep clicking the "add collection" button.

      Expected Results

      The diagram keeps rendering new nodes.

      Actual Results

      Eventually, all the nodes disappear. In dev server, you'll also see an overlay with a ResizeObserver error.

      Additional Notes

      The problem is likely due to the react flow library attempting several re-renders at once. We're hoping this could be prevented by debouncing the viewport change after new node is added.

            Assignee:
            Unassigned
            Reporter:
            Paula Stachova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: