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 strict-mode] Enable classic component usage in strict mode #19306

Merged
merged 1 commit into from
Dec 14, 2020

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Dec 14, 2020

Previously classic components were not possible to use in strict mode,
since there was no way to pass the owner to them as they were not
resolved with the factory system. This refactor fixes this by using the
new owner API, which passes the owner into the create hook of
component managers. In addition, makes the renderer property of views
a standard injection that is lazy, so we are no longer injecting it via
the implicit injection API.

Release notes for Glimmer VM: https://github.com/glimmerjs/glimmer-vm/releases/tag/v0.70.0

@pzuraq pzuraq force-pushed the update/bump-vm-enable-strict-classic branch 2 times, most recently from a3dc26f to d81b0f8 Compare December 14, 2020 20:43
Previously classic components were not possible to use in strict mode,
since there was no way to pass the owner to them as they were not
resolved with the factory system. This refactor fixes this by using the
new owner API, which passes the owner into the `create` hook of
component managers. In addition, makes the `renderer` property of views
a standard injection that is lazy, so we are no longer injecting it via
the implicit injection API.
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