Description of the bug
Frontend ends up in a save loop simply because there are default values present in the stateless fields.
This suggests that something in the frontend interprets the default value as an actual change, which then triggers a new save cycle.
Steps To Reproduce
- Set up an app with a stateless task that includes components which has hidden dynamic based on selections made earlier in the stateless task.
- Trigger the dataProcessor by changing a field that reveals additional components, where those components have default values defined in the data model.
- Backend and frontend end up in a loop between PUT and GET requests.
This can be tested by setting up mock data in the environment https://altinn.studio/repos/hdir/spesialistskjema-norsk.
Additional Information
Thread in altinn-studio: https://digdir.slack.com/archives/C0760NPT2BE/p1772712481439369
Thread in produkt-altinn-studio: https://digdir-samarbeid.slack.com/archives/C02EJ9HKQA3/p1772551723983209