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

[BUGFIX] Fixes the isComputed check for beta #252

Closed

Conversation

pzuraq
Copy link

@pzuraq pzuraq commented Apr 3, 2019

In beta, computed now returns a decorator function instead of
a ComputedProperty instance (ComputedProperty is now internal only).
This changes the check to be against a function, and to see if it
has the _getter property that we still expose for the time being.

This depends on emberjs/ember.js#17855

Chris Garrett and others added 2 commits April 3, 2019 12:37
In beta, `computed` now returns a decorator function instead of
a ComputedProperty instance (ComputedProperty is now internal only).
This changes the check to be against a function, and to see if it
has the `_getter` property that we still expose for the time being.
@simonihmig
Copy link

simonihmig commented May 6, 2019

Any update on this? Seems a bunch of tests are still failing...

I believe I just ran into this after upgrading to latest canary. For something like this:

@filterBy('assumptionTrees', raw('isOption'), false)

I get a "Brace expanded properties cannot contain spaces..." assertion, as the CP's key is [email protected] COMPUTED_DECORATOR(target, key,... (when debugging the stack). Which looks pretty much as if the raw CP is not recognized as such...

@bendemboski
Copy link
Contributor

Even with a fix like this, there's another issue, which is that this no longer works.

I'm hoping to just get off of all these private APIs with this PR.

@kellyselden
Copy link
Owner

Should be fixed in #260.

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.

4 participants