Altinn / app-frontend-react

Altinn application React frontend
BSD 3-Clause "New" or "Revised" License
19 stars 31 forks source link

Sub-form internal data model is not updated when performing a PATCH to backend #2246

Closed danielskovli closed 2 weeks ago

danielskovli commented 1 month ago

Discussion and illustration of the problem: https://digdir.slack.com/archives/C076T2293CM/p1721652689096269

Update: Will most likely be resolved by https://github.com/Altinn/app-frontend-react/pull/2244

danielskovli commented 1 month ago

It is possible that this could be fixed by a targeted PR @olemartinorg mentions in the thread above.

Backburner for now.

danielskovli commented 2 weeks ago

This has been resolved with the performance branch merge. The new behaviour of useFormDataQuery is to not cache anything, which in this particular case results in a new server call being issued.

Not optimal, but works well for now.