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

[FEATURE ember-engines-mount-params] Constrain to model hash arg. #15325

Merged
merged 1 commit into from
Jun 4, 2017

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Jun 4, 2017

After discussion during a recent core team meeting, the original implementation
(and RFC) were determined to be a bit future hostile.

Specifically, with the implementation prior to this PR it would have been impossible to add any additional hash arguments that were targeting the {{mount syntax directly (e.g. namespacing for use with tree shaking) without breaking changes (since all hash arg names were allowed to be passed through before).

This change updates things a bit to limit the pass through to the model hash argument, which actually makes things a tad bit more teachable anyways. The ability to pass down arbitrary named values is absolutely still present through the usage of the (hash helper.

After discussion during a recent core team meeting, the original
implementation (and RFC) were determined to be a bit future hostile.

Specifically, with the implementation prior to this PR it would have
been impossible to add any additional hash arguments that were
targeting the `{{mount` syntax directly (e.g. namespacing for use
with tree shaking) without breaking changes (since all hash arg names
were allowed to be passed through before).

This change updates things a bit to limit the pass through to the `model`
hash argument, which actually makes things a tad bit more teachable
anyways. The ability to pass down arbitrary named values is absolutely
still present through the usage of the `(hash` helper.
@rwjblue
Copy link
Member Author

rwjblue commented Jun 4, 2017

/cc @mike183

@rwjblue rwjblue merged commit d338c60 into emberjs:master Jun 4, 2017
@rwjblue rwjblue deleted the update-mount-engine-params branch June 4, 2017 02:06
@mike183
Copy link
Contributor

mike183 commented Jun 4, 2017

👍

Thanks for the heads up.

@knownasilya
Copy link
Contributor

Sweet

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