When some problem causes an exception while rendering designer, the entire react tree is unmounted and the user will see a white page.
Describe the solution you'd like
We should use react error boundaries to show a proper error message. These should be placed at different levels at in the component hierarchy to enable context sensitive help when app developers might have encountered a common issue.
Additional context
Some errors are caused by malformed json files in the git repo. Those should have clear error messages, because app developers will encounter them and be expected to fix them.
When some problem causes an exception while rendering designer, the entire react tree is unmounted and the user will see a white page.
Describe the solution you'd like
We should use react error boundaries to show a proper error message. These should be placed at different levels at in the component hierarchy to enable context sensitive help when app developers might have encountered a common issue.
Additional context
Some errors are caused by malformed json files in the git repo. Those should have clear error messages, because app developers will encounter them and be expected to fix them.
A simple "better than nothing" implementation for the lowest level that does not give any help can be found at https://github.com/Altinn/altinn-studio/compare/master...ivarne:errorBoundry