Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure languages are loaded before rendering forms #1590

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucasnetau
Copy link
Collaborator

@lucasnetau lucasnetau commented Nov 13, 2024

Fix #1577

The language files are loaded async, however they are expected to be loaded by formRender prior to rendering of any controls.

This has a BC break in that the formRender:render() method is now async and therefore may not have completed if there are post render calls. You can see the effect in the failed tests

@@ -197,6 +198,11 @@ class FormRender {
}
}

if (this.mi18nLoading) {
await this.mi18nLoading
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lucasnetau
Copy link
Collaborator Author

Don't merge this until tests are modified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants