-
-
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
test: reads('task.last.value')
tracked prop interop
#300
Conversation
`^7.1.3` -> `^10.0.1` Also adds `sass` as the new default sass implementation. This allows running the dummy app with Node 12.
|
||
assert.strictEqual(this.element.textContent.trim(), 'reads: ; direct: ;'); | ||
|
||
this.subject.otherTask.perform(); // toggle this line |
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.
The error only occurs, if this line is executed. If you comment it out, the the test will pass.
return 1337; | ||
}), | ||
|
||
lastValue: reads('task.last.value') |
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.
If I substitute last
with lastSuccessful
instead, it also works.
`^6.8.2` -> `^7.7.3` This enables the usage of decorators. Also removes the deprecated `babel.blacklist` config. This is now handled via the browser `targets.js`.
295d66d
to
89b92dd
Compare
Fixed via emberjs/ember.js#18073! 🎉 |
While upgrading our app to Ember Octane, I found that there is an issue with the interoperability of
task.last.value
and thereads
computed property when tracked properties (EMBER_METAL_TRACKED_PROPERTIES
) are enabled.I don't yet understand the specific internals and haven't dug deeper, but I was able to conjure up a reliable minimal reproduction.
You can run the test case with:
ember try:one ember-canary-tracked-properties --skip-cleanup --- ember s -e test
The test module is named
Integration | reads('task.last.value')
.This PR includes #299, because I couldn't get ember-cli to run otherwise.