Reported by SSB. When submitting a form with a large amount of rows in a repeating group, the submit button could end up stalling the main thread and prompting the user with a 'page is stuck, do you want to leave it?' warning. It turns out this happened because of sequential state updates removing nodes from the hierarchy when unmounting the data task.
This should optimize the situation by collecting all the removal requests and iterating them all more closely in the zustand action function.
Related Issue(s)
closes #{issue number}
Verification/QA
Manual functionality testing
[x] I have tested these changes manually
[ ] Creator of the original issue (or service owner) has been contacted for manual testing (or will be contacted when released in alpha)
[ ] No testing done/necessary
Automated tests
[ ] Unit test(s) have been added/updated
[ ] Cypress E2E test(s) have been added/updated
[x] No automatic tests are needed here (no functional changes/additions)
Description
Reported by SSB. When submitting a form with a large amount of rows in a repeating group, the submit button could end up stalling the main thread and prompting the user with a 'page is stuck, do you want to leave it?' warning. It turns out this happened because of sequential state updates removing nodes from the hierarchy when unmounting the data task.
This should optimize the situation by collecting all the removal requests and iterating them all more closely in the zustand action function.
Related Issue(s)
Verification/QA
kind/*
label to this PR for proper release notes grouping