Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph edit queue #2237

Merged
merged 3 commits into from
Sep 23, 2022
Merged

Graph edit queue #2237

merged 3 commits into from
Sep 23, 2022

Conversation

alexcjohnson
Copy link
Collaborator

@alexcjohnson alexcjohnson commented Sep 19, 2022

Plotly.js rendering in dcc.Graph can be async - more so now that we support MathJax in Dash, though there were always some async things like loading geojson. Anyway this hasn't caused any problems in core dash that I'm aware of, but in dash-design-kit, which wraps dcc.Graph and passes some information back and forth for theming purposes, extendData and prependData could cause two render cycles to overlap and drop the new data. This ensures the plotly.js method calls are sequenced properly, even if they end up delayed relative to the React renders. In my testing the changes here fix DDK (separate PR coming there) and it may fix some as-yet-undiscovered bugs in core DCC.

  • I have run the tests locally and they passed. (refer to testing section in contributing)
  • I have added entry in the CHANGELOG.md

@alexcjohnson alexcjohnson requested a review from T4rk1n September 19, 2022 17:52
Copy link
Contributor

@T4rk1n T4rk1n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 💃

@alexcjohnson alexcjohnson merged commit a5bb256 into dev Sep 23, 2022
@alexcjohnson alexcjohnson deleted the graph-edit-queue branch September 23, 2022 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants