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 usage of owner.unregister within ember-engines tests #1216

Merged
merged 1 commit into from
May 17, 2022

Conversation

buschtoens
Copy link
Contributor

When buildOwner is used with a resolver instead of an application, a custom owner is constructed via -internal/build-registry.ts and used instead of an ApplicationInstance.

This custom owner misses the unregister patch that was added in emberjs/ember.js#12680 to fix emberjs/ember.js#11173 (comment). It is now on the EngineInstance.

Fixes buschtoens/ember-link#714.

@rwjblue rwjblue added the bug label May 17, 2022
@rwjblue rwjblue changed the title fix(owner): unregister calls container.reset Fix usage of owner.unregister within ember-engines tests May 17, 2022
@rwjblue rwjblue merged commit 49ff317 into emberjs:master May 17, 2022
@buschtoens buschtoens deleted the fix-owner-unregister branch May 24, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setupLink() is broken for engines Calling unregister on the registry does not clear out the container
2 participants