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

Component positional params don't update when used with the component helper #13158

Closed
GavinJoyce opened this issue Mar 21, 2016 · 8 comments
Closed
Assignees

Comments

@GavinJoyce
Copy link
Member

I came across this when porting component helper tests to Glimmer2.

Twiddle: https://ember-twiddle.com/8bd17b5f64fdf1f400d8

When this is fixed, please uncomment https://github.com/emberjs/ember.js/pull/13140/files#r56916691

@rwjblue
Copy link
Member

rwjblue commented Mar 22, 2016

This works properly in the glimmer implementation but not HTMLBars or it doesn't work in either case?

@GavinJoyce
Copy link
Member Author

I don't believe positional params have been implemented in glimmer yet
On 21 Mar 2016 6:02 p.m., "Robert Jackson" [email protected] wrote:

This works properly in the glimmer implementation but not HTMLBars or it
doesn't work in either case?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#13158 (comment)

@GavinJoyce
Copy link
Member Author

From #13127:

screen shot 2016-03-21 at 19 42 23

@pixelhandler
Copy link
Contributor

@GavinJoyce I'm curious in the twiddle example regarding using positionalParams in two separate component that both use Ember.Component.reopenClass to do the same thing. Is that how you would used positional params in an app? or would you extend the component then reopenClass ?

@GavinJoyce
Copy link
Member Author

@pixelhandler thanks, my mistake. I've updated the twiddle, the bug is still present. I'll update the tests in ember.js too, they currently do Ember.Component.reopenClass.

TODO:

@locks
Copy link
Contributor

locks commented Apr 17, 2016

@Serabe can you review?

@Serabe
Copy link
Member

Serabe commented Apr 17, 2016

Yes. A quick test shows that for rest pos params it only updates for the first one (😲). I'm working on other parts of positional parameters, so I'll take a look while at it.

@Serabe
Copy link
Member

Serabe commented Apr 30, 2016

#13435 fixes this problem in HTMLBars. Glimmer 2 support for positional parameters is on its way (#13393) and won't need a fix.

Serabe added a commit to Serabe/ember.js that referenced this issue May 2, 2016
Updates positional parameters when component is invoked with the component
helper.

Uncomments the test, as asked in emberjs#13158.
rwjblue pushed a commit that referenced this issue May 2, 2016
Updates positional parameters when component is invoked with the component
helper.

Uncomments the test, as asked in #13158.

(cherry picked from commit 191942a)
toddjordan pushed a commit to toddjordan/ember.js that referenced this issue Sep 9, 2016
Updates positional parameters when component is invoked with the component
helper.

Uncomments the test, as asked in emberjs#13158.
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

No branches or pull requests

5 participants