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

chore: Use willDestroy() instead of destroy() in helper for teardown. #211

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

raido
Copy link
Contributor

@raido raido commented Feb 12, 2021

Previous implementation did not call super.destroy() which means potentially some of super class functionality was not executed.

From lifecycle perspective willDestroy() is better suited for teardown.

Closes: #210

Previous implementation did not call super.destroy() which means
potentially some of super class functionality
was not executed.

From lifecycle perspective willDestroy()
is better suited for teardown.
@raido raido requested a review from knownasilya February 12, 2021 05:12
@knownasilya knownasilya merged commit 38fbc19 into ember-cli:master Feb 12, 2021
@knownasilya
Copy link
Contributor

Published

@raido raido deleted the helper-will-destory-hook branch February 12, 2021 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.

Use willDestroy in helper?
2 participants