Conversation
camdecoster
left a comment
There was a problem hiding this comment.
This seems okay, but before I approve could you please provide a description and some steps to reproduce the issue? Then I can test before/after changes and see the fix in action.
|
Never mind, just saw your comment in the PR description. In that case, would it make sense to open another issue which can be closed by this PR? |
Call react again to ensure transitions are triggered Remove obsolete references to configChanged
Yes. I have a comment drafted about that, but never submitted it. 🤦 |
| layout: layout | ||
| }); | ||
| return plotDone.then(() => { | ||
| if (!configChanged) gd.emit('plotly_react', { config, data, layout }); |
There was a problem hiding this comment.
@camdecoster Is there a reason we don't want to emit a plotly_react event if the config changed?
There was a problem hiding this comment.
It will emit twice for one call to react without that check. This is because we call newPlot and then react again after that, all within the first call to react.
Description
Use
newPlotif config has changed instead of_doPlotinsidePlotly.react.Closes #7551.
Supersedes #6395.
Changes
newPlotshould be usedTesting
Notes
gd.dataorgd.layout. For that reason, I don't think that this PR fixes the original issue in enable updating the config of a plot without changing other parameters #6394 so I'm not going to close that issue once this merges.