-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
waitForProperty() doesn't work when awaiting for task.isIdle #470
Comments
I simplified your example to this JSFiddle: https://ember-twiddle.com/cd2a22c33dad1f55a12f1994bac9e4ff?openFiles=templates.components.my-component%5C.hbs%2C It does appear to be a real bug... i'm guessing something to do with recent versions of ember and how/whether/when watched properties fire observers. |
I would be curious what the behavior is in Ember 3.20+ too. IIRC there were some bugs with tracked and computed/observer interop between Ember 3.13 and 3.20, and unfortunately Ember Fiddle is capped at Ember 3.18 |
@maxfierke @machty I tried ember-quickstart app locally, with
Example works perfectly just as should be according to documentation. PS I realized that optional-features.json contain "default-async-observers": true. |
Running into this now. From what I quickly gather:
I'll spend a little more time digging to see if there's a solution and I'll share what I find. |
@dsafonov-grid I wrote some tests to reproduce but couldn't get things to break, then I re-read your comment on async observers and when I set the behavior back to old school sync observers, the tests started to fail. I think if this bug only happens with sync observers then I think we can close this is a |
I ran into another case of
I found that when setting alert back to null (which would make I solved this by splitting |
Also for posterity I made a PollForProperty that does timeout polling: https://gist.github.com/machty/50be480319857b2513cb8b65f7433d68 I didn't end up needing it but it did solve work as an alternative to waitForProperty. |
Team, could you please knock me in a right direction.
I have composed the following example on twiddle: https://ember-twiddle.com/29aa8f11ea2208bd5f4095f7c12bfdcd?openFiles=templates.application%5C.hbs%2C
Why doesn't it work the way that is mentioned in docs: http://ember-concurrency.com/docs/events
Tasks seems start to finish only once UI is updated.
Thank you
The text was updated successfully, but these errors were encountered: