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

[WIP][BUGFIX Beta] Positional param clash on rerender of contextual component helper #12711

Merged
merged 1 commit into from Dec 21, 2015
Merged

Conversation

ghost
Copy link

@ghost ghost commented Dec 14, 2015

See the diff for what is happening exactly.

{{#form-for object as |f|}}
  {{f.text-field propertyName}}
{{/form-for}}

This started raising You cannot specify both a positional param (at position 0) and the hash argument 'propertyName' anytime something updated after the initial render.

I (not yet) have a clue how to fix this, so either a fix or some pointers how to fix would be welcome!

@rwjblue
Copy link
Member

rwjblue commented Dec 14, 2015

Another recent PR addressed similar areas: #12626.

@Serabe is our resident expert with contextual components. Maybe he can point us in the right direction...

@ghost
Copy link
Author

ghost commented Dec 14, 2015

I found a fix, but I'm not sure if it's a nice fix.

@Serabe
Copy link
Member

Serabe commented Dec 14, 2015

I'll take a look at this this evening (UTC+2)

Serabe added a commit to Serabe/ember.js that referenced this pull request Dec 14, 2015
If we merge positional and hash parameters without duplicating the hash before,
then we get an error when rerendering.

Fixes test in emberjs#12711
Serabe added a commit to Serabe/ember.js that referenced this pull request Dec 20, 2015
If we merge positional and hash parameters without duplicating the hash before,
then we get an error when rerendering.

Fixes test in emberjs#12711
@rwjblue rwjblue merged commit 07ea189 into emberjs:master Dec 21, 2015
rwjblue pushed a commit that referenced this pull request Dec 27, 2015
If we merge positional and hash parameters without duplicating the hash before,
then we get an error when rerendering.

Fixes test in #12711

(cherry picked from commit 4e7fe48)
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.

3 participants