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

Avoid assertion when bound id is provided to tagless component #14385

Conversation

HeroicEric
Copy link
Sponsor Member

See #14382

/cc @rwjblue

@HeroicEric HeroicEric force-pushed the add-test-for-avoiding-assertion-when-id-is-bound branch from e3ae956 to ee18acf Compare September 30, 2016 22:33
@HeroicEric
Copy link
Sponsor Member Author

Updated with suggestion from #14382 (comment)


this.assertText('baz');

this.runTask(() => set(this.context, 'fooBarId', 'qux'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do a noop rerender before this mutation step?

This should do the trick:

this.assertStableRerender();

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@HeroicEric HeroicEric force-pushed the add-test-for-avoiding-assertion-when-id-is-bound branch from ee18acf to 38fe034 Compare October 4, 2016 14:52
@rwjblue rwjblue merged commit 7d032b0 into emberjs:master Oct 4, 2016
@rwjblue
Copy link
Member

rwjblue commented Oct 4, 2016

Thanks @HeroicEric!

@HeroicEric HeroicEric deleted the add-test-for-avoiding-assertion-when-id-is-bound branch October 4, 2016 15:57
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.

2 participants