Conversation
|
SonarCloud Quality Gate failed. |
bjosttveit
left a comment
There was a problem hiding this comment.
Very nice! And great test coverage! Just one question, will expressions using state.textResources or selectedAppLanguage reevaluate if the language changes?
@bjosttveit great question!👍 I was testing this by console.log "running language function" inside the language expression and it logs on every language change I did within the app, meaning it re-runs every time I change the language within the app. |
|
Ohh, I missed the review window on this one! 😬 I see you used the window object directly to get the current state instead of properly adding the state we depend on to |
Sorry I should probably have known that 😬 |
No worries, then we both learned something @bjosttveit. 😄 Thanks to @olemartinorg for catching this quite fast after the merge. I have a PR that should fix this problem. Ready for review: #1214 |
|
Docs PR is ready for review here. Altinn/altinn-studio-docs#946 :) |








Description
Created new functions to be available for expressions, please see the issue for more details.
Working on documentation while this PR is in review.
Related Issue(s)
Verification/QA
src/layout/layout.d.tsandlayout.schema.v1.json, and these are all backwards-compatiblekind/*label to this PR for proper release notes grouping