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

fix: remove empty default hooks from QueryParams #76

Closed
wants to merge 1 commit into from

Conversation

ckbaum
Copy link

@ckbaum ckbaum commented Feb 26, 2019

Because of the order that the queryParams mixin is applied, queryParamsDidChange, setup, and reset are not overrideable by methods in the controller.

The issue is visible on the demo page; the progress bar that is supposed to appear on top of the form on queryParamsDidChange never shows up.

Removing the empty placeholder methods allows them to be defined in the controller, and they still work without being overriden because they are always called with tryInvoke.

Because of the order that the `queryParams` mixin is applied, `queryParamsDidChange`, `setup`, and `reset` are not overrideable by methods in the controller.

The issue is visible on the [demo page](https://offirgolan.github.io/ember-parachute/); the progress bar that is supposed to appear on top of the form on `queryParamsDidChange` never shows up.

Removing the empty placeholder methods allows them to be defined in the controller, and they still work without being overriden because they are always called with `tryInvoke`.
@offirgolan
Copy link
Owner

offirgolan commented Feb 27, 2019

@ckbaum thanks for this PR!

The build seems to be failing on your new test case.

@offirgolan
Copy link
Owner

Resolved in #79.

@offirgolan offirgolan closed this Mar 6, 2019
@ckbaum
Copy link
Author

ckbaum commented Mar 7, 2019

Awesome, thanks!

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