Multivalue prop changes should debounce requests per component instance form
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3586848. --> Reported by: [justafish](https://www.drupal.org/user/161058) Related to !1025 >>> <h3 id="overview">Overview</h3> <p>Follow up from <a href="https://git.drupalcode.org/project/canvas/-/merge_requests/960#note_806852">https://git.drupalcode.org/project/canvas/-/merge_requests/960#note_806852</a></p> <p>When making changes to multivalue props, a separate request is made for each prop items. e.g. if we reorder a 3 items' list, we do 3 separate request debounced. This is O(N) in terms of requests made and we cannot ensure there won't be collisions, their order, and the preview might be stale if a race-condition happens. Fixing this would not only avoid race conditions, but also reduce the number of requests Drupal needs to handle (O(1)).</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Debounces the requests per component instance form instead of per input</p>
issue