-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Make sure that hasLoaded flag is only true when the loaded event has fired. Alternative implementation of commit 924dc00 (fix #5425) #5430
Conversation
@mrxz this should cover all the issues of #5425 I introduced an I tested on your glitches and added test to cover those scenarios. Can you also validate on your side? Thanks |
Glitch with build for convenience: https://glitch.com/edit/#!/lemon-magnificent-badge?path=index.html%3A1%3A0 |
@@ -278,7 +278,7 @@ Component.prototype = { | |||
|
|||
// Just cache the attribute if the entity has not loaded | |||
// Components are not initialized until the entity has loaded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps update this comment to something like "... until the entity starts loading"
Thanks, this does indeed seem to cover all the issues. Did some more testing and didn't find any other regressions, so seems good to go. The naming of the |
@mrxz Thanks for testing it. Just one request. I copied your glitch test case from #5425 (comment) verbatim to the tests include in this PR. They are a tad complicated / convoluted and will be hard to understand and maintain. Do you think you can simplify them a bit? Thanks |
@mrxz just ping in case you have some bandwidth to simplify your test cases so I can incorporate them to the unit tests. Thanks so much |
@dmarcos Gave it a shot. The test cases included visual output, but as unit tests that's not relevant. However they do all rely on specific order of execution (things taking place during See my attempt at simplifying them: mrxz@2ff8fac In summary:
|
…fired (alternative implementation of commit 924dc00 (fix aframevr#5425)
Thanks. I cherry picked your commit |
No description provided.