Repository navigation
Preserve consecutive dcc.Graph relayout updates - #4174
Open
FistOfMight wants to merge 2 commits into
Open
FistOfMight wants to merge 2 commits into
FistOfMight wants to merge 2 commits into
Conversation
|
FistOfMight
marked this pull request as ready for review
November 23, 2026 14:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes #4172.
Consecutive
Plotly.relayoutcalls can each copy the same stalefigureprop before React delivers an update. The second copy drops the first edit, and the ensuing redraw undoes it on screen. For example, setting a y range and then an x range preserves only the x range.Build each synchronization on the latest pending figure. Track pending figures until React acknowledges them, retaining later writes across an intermediate acknowledgement and clearing pending writes when an external figure replaces them. This preserves existing figure synchronization for
Patchwithout adding an API or changing the layout keys that are copied.Related: #3882, #4093 and #4102. This fixes lost updates within a batch, independently of
uirevision. The Graph source changes in #4102 apply cleanly alongside this patch; combined runtime behavior has not been tested.Validation:
Additional Python unit sweep: 742 passed across the initial run and a follow-up for three files after installing a missing test dependency; six skipped. The unrelated Firefox browser smoke test could not start in this environment, so the full Python unit sweep is not entirely green.
Contributor Checklist
devas a bug fix.