-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
[1.0.1] Doesn't wait for helper recomputation #469
Comments
Can you provide a reproduction repo? That would help me step through the code, and figure out whats going on... |
The second commit adds a test and sets |
Sounds basically like the issue in emberjs/ember.js#14774. |
Yes, you are right, that fixes the issue. I wouldn't have thought about that, sorry. You're free to close the issue if you feel so. |
OK, so putting a @computed('someService.foo')
public get a(): string {
return this.someService.foo.split('-')[0];
}
@computed('someService.foo')
public get b(): string {
return this.someService.foo.split('-')[1];
}
public method(): void {
console.log(this.a, this.b);
} And in some other place: this.someService.set('foo', 'z-x');
something.method(); The |
Just to be clear, it should be |
Ah, no, I was using |
This issue is fixed as of Ember 3.11. |
I have a helper in which I have something like:
And in the test I do:
When on
1.0.0
this test passes even without theawait settled()
line.1.0.1
causes it to fail even with all of the above code. The output on1.0.1
is:I'm kind of confused about all this waiting stuff but looking at
recompute
's implementation I don't see anything concerning runloops so I'm not sure why it ever worked... and what I should do to make it pass on1.0.1
?The text was updated successfully, but these errors were encountered: