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

[BUGFIX beta] Don't thread FactoryManager through createComponent #16854

Merged
merged 1 commit into from Aug 2, 2018

Conversation

chadhietala
Copy link
Contributor

We should not be exposing the FactoryManager to the Custom Component Manager. Instead just pass the factory e.g. .class directly into the hook.

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chadhietala chadhietala merged commit 9ea80e1 into master Aug 2, 2018
@chadhietala chadhietala deleted the fix-factory-passing branch August 2, 2018 17:24
@jordpo
Copy link

jordpo commented Nov 28, 2018

@chadhietala this is causing issues when using a custom component manager to create a component that has DI since the container isn't found on the ComponentClass.class. The error details are

“Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.”

I also don't understand why this logic needs to be different than how we handle instantiating components using the built in managers.

@rwjblue
Copy link
Member

rwjblue commented Nov 28, 2018

@jordpo - The change here was the correct one to make, perhaps you can open an issue to discuss your specific scenario...

@jordpo
Copy link

jordpo commented Nov 28, 2018

Thanks @rwjblue . I created an issue here

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.

None yet

3 participants