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 ensureSafeComponent to not reuse registered component across owners #624

Merged
merged 2 commits into from
Nov 24, 2020

Conversation

simonihmig
Copy link
Collaborator

@simonihmig simonihmig commented Nov 21, 2020

@ef4
Copy link
Contributor

ef4 commented Nov 23, 2020

Thanks for figuring this out.

Can we make this more conventional by keeping our state in an Ember Service instead?

Then we would only need a single level of WeakMap, because the WeakMap itself could live in the Service and therefore get destroyed when the app is destroyed.

@simonihmig
Copy link
Collaborator Author

Can we make this more conventional by keeping our state in an Ember Service instead?

@ef4 done!

@ef4 ef4 merged commit 5b5cde5 into embroider-build:master Nov 24, 2020
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