-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
this.args is undefined inside component after enabling proxy #18202
Comments
yes facing the same issue in glimmer components when using commit b6a3ecd in ember-source |
It’s more likely that the way that GlimmerComponent assigns args to the instance of the class is not compatible with the new autotracking strategy, since we test args out with a “Glimmerish” component that implements the same API. I’m currently working on fixing the transpilation bugs that keep popping up, but then this will be my next priority. |
This should be fixed by glimmerjs/glimmer.js#201 |
We're facing this as well. Thank you for your swift work, @pzuraq |
In glimmer components, the named arguments are supposed to be accessible via
this.args
property. But after enabling proxy access, I can't access the arguments and it is coming something likeSymbol(magic-prop)
. With the previous SHA, I can able to get the args without any issue.Reproduction: https://codesandbox.io/s/my-app-tdwwx
In this sandbox,
name
argument has been accessed insideformattedName
getter.Is there any other way I can access the arguments? Thanks for any help.
The text was updated successfully, but these errors were encountered: