Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Graph overdrawing & failed cleanup #603

@alexcjohnson

Description

@alexcjohnson
  1. Graph is not removing its event listeners when unmounting. This is a simple problem that I have a fix already done for.
  2. Graph with no id replots itself multiple times during startup, with different auto id each time and in a new DOM element each time. Event listeners are only attached to the first one so can never be removed after that one is discarded. Do we even need these auto ids anymore? Can we just get the element from a ref and forget about generating id (and having to query the DOM every time we want to address the graph)? Also can we avoid this multiple redraw thing?

Discovered while investigating https://community.plot.ly/t/why-would-an-app-completely-freeze-if-i-press-on-ctrl-and-throw-an-error-about-a-graph-which-was-perfectly-loaded-and-displayed-on-the-previous-page-5-sec-earlier/27035/5

Metadata

Metadata

Assignees

Labels

dash-type-bugSomething isn't working as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions