Changes appearing immediately after switching layouts
See original GitHub issueWhen switching between layouts, the layout sometimes immediately appears modified, even though the user didn’t change anything. If you look at the json before/after, sometimes the panel configs that change are actually from panels that aren’t present in the layout — this indicates a stale reference to old config being saved under the new layout.
I thought I already fixed this issue in #1425, so not sure if it regressed or just wasn’t totally fixed. The logic for savedDefaultConfig.current
here is supposed to prevent saving data from an old layout after switching.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Windows 10: unwanted keyboard layouts appear after ...
I have two non-English keyboard layouts in my Windows 10 Home settings. Recently Windows Update forced me to update the OS to version...
Read more >FancyZones not applying correct layout after switching monitors
Changing to another layout is not recognized and windows still continue to be snapped to 3 vertical columns. If powertoys is closed and ......
Read more >Switching templates in version 7.0 - Squarespace Help Center
This guide covers how to switch templates on version 7.0. It's not possible to change templates on a version 7.1 site. In version...
Read more >Drawing elements do not show within a layout viewport in ...
Issue: When viewing a layout in AutoCAD, some or all elements shown in model space do not display within one or more viewports....
Read more >Using Zebra EKB Designer
When switching between layouts in a project, resizing or changing layout ... Changes to most properties appear immediately on the selected button(s).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
From our chat - it seems that the issue here is synthetic and would not occur the same way through user interaction. The “inject edit” adds a panel to the layout but fails to add the default config. A user that is working with the app on two computers and adding a layout would not produce the same result since the app will set the default config when the panel is added to the layout.
I’m gonna close this issue since through user interaction this same flow would not occur. If we do find other instances of changes appearing in unexpected ways (or via remote interaction) we should open new issues with reproduction for those.
If you’ve never made changes to the layout locally or even clicked on it, someone else changing it on the server shouldn’t result in a modified dot on your machine. Notice in my video the dot doesn’t appear upon sync, but only when loading the layout.
The dot being visible is just “working copy != undefined”. An unmodified layout doesn’t have a working copy, only the baseline