Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

buschtoens
Copy link
Contributor

@buschtoens buschtoens commented Jun 3, 2019

While upgrading our app to Ember Octane, I found that there is an issue with the interoperability of task.last.value and the reads 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.

`^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
Copy link
Contributor Author

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')
Copy link
Contributor Author

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`.
@buschtoens
Copy link
Contributor Author

Fixed via emberjs/ember.js#18073! 🎉

@buschtoens buschtoens closed this Jun 6, 2019
@buschtoens buschtoens deleted the bug/tracked-properties branch June 6, 2019 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant