-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix visit() promise resolution #16059
Comments
@krisselden Can you provide some more context about this bug?
What does "it" refer to here? What are the specific behaviors that we need to change about the current implementation for us to consider promise resolution fixed and close this bug? |
that the promise resolves here https://github.com/emberjs/ember.js/blob/master/packages/ember-glimmer/lib/renderer.ts#L194 |
Also, I think it would be nice to have an API for a promise when rendering has settled. |
As a mechanism to flush out tests that artificially forced visit to behave synchronously, I swapped |
The fix in this PR makes the issue worse, it is now less likely render is fully resolved when the visit promise is resolved.
#14591
This issue causes a lot of tests to force flush the run loop to ensure visit is done rendering.
To clarify, this issue isn't about error handling, it is about actually resolving the promise only when rendering is actually settled.
The text was updated successfully, but these errors were encountered: