Prevent OrientationPanel from patching on mount or element change
Closes #743 (closed)
When the OrientationPanel loads, it is possible for the element to not be loaded yet, or its element might suddenly change without the component changing, for example when browsing back and forth between multiple elements, or after simply renaming the element. When this happens, it will update its own fields. But there are watchers on those fields, to update the element if the fields change; so when the fields are changed by the element, the panel immediately runs a PATCH query even when it is completely unnecessary.
This can cause 403 errors to show up for logged-out users, or those with read-only access or unverified emails, particularly when loading an already rotated or mirrored element.
Merge request reports
Activity
requested review from @babadie
added 17 commits
-
b1c391f6...44388bf9 - 16 commits from branch
master
- cc7acce7 - Prevent OrientationPanel from patching on mount
-
b1c391f6...44388bf9 - 16 commits from branch
- Resolved by Erwan Rouchet
added 2 commits
added 4 commits
-
ccd77393...9072a72a - 2 commits from branch
master
- d56b1065 - Prevent OrientationPanel from patching on mount
- 271a4131 - Add comment
-
ccd77393...9072a72a - 2 commits from branch
enabled an automatic merge when the pipeline for 271a4131 succeeds
mentioned in commit 75052216