You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A panel reset ignores user zooms until its response arrives #85
The Plotly override of fvOnResetPanel (flexviz/adapters/js/plotly/init.js) wraps the whole panel reset in fvRunProgrammaticPlotlyOp. The reset awaits postDashboardUpdate, so the programmatic guard stays on for the full network round trip. During that time, handleRelayout ignores every user zoom on every figure. The display moves, but state.viewport does not change, and no request is sent.
Measured in a browser. The reset response of A was held back for 2 s. During that time, a mouse drag zoomed figure C:
The guard read true during the reset.
The only post was the reset of A. There was no post for C, and state.viewport stayed {}.
C showed [150, 299], but its linked partner D stayed at [0, 499]. The state for both was equal (absent), so the display of a linked group split.
An unlinked figure zoomed the same way kept full-range data with 50 points under a zoomed axis, and the data was never fetched again.
This existed before PR #77. Linked axes add the split display of a group.
Is the guard needed?
_fvRenderFigure uses Plotly.react, which emits no plotly_relayout. In the same test without the override, the reset of a figure with a selection gave the same events and posts: the dedup in handleSelected catches the repeated selection event. Pie, treemap and cube brush paths are not tested yet.
Fix direction
Delete the override (_fvBaseOnResetPanel and the wrapper), then run the full browser suite. Pay attention to the pie, treemap and live-brush paths. Add a browser test that zooms another figure while a delayed reset response is pending.
Related: #75 (stale responses) and #76 (shared guard flag).
Fixed by #89 (merge c3c01fc). Reset, panel reset and deselect no longer hold the programmatic guard during their request. The Plotly override of fvOnResetPanel is deleted. Test: test_a_zoom_while_a_reset_is_pending_posts_and_keeps_its_data (panel reset, global reset, deselect). A zoom on a linked figure during a held reset was also checked on main 471c09b: one post names both linked axes.
Activity
jvdd commentedon Sep 25, 2026
Fixed by #89 (merge c3c01fc). Reset, panel reset and deselect no longer hold the programmatic guard during their request. The Plotly override of
fvOnResetPanelis deleted. Test:test_a_zoom_while_a_reset_is_pending_posts_and_keeps_its_data(panel reset, global reset, deselect). A zoom on a linked figure during a held reset was also checked on main 471c09b: one post names both linked axes.