Skip to content

Runway error in stateless task #4049

@walldenfilippa

Description

@walldenfilippa

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

  1. Set up an app with a stateless task that includes components which has hidden dynamic based on selections made earlier in the stateless task.
  2. Trigger the dataProcessor by changing a field that reveals additional components, where those components have default values defined in the data model.
  3. 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

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't workingsquad/utformingIssues that belongs to the named squad.

Type

Projects

Status

👷 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions