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

Use public interface for registering react components. #4422

Conversation

Hyperkid123
Copy link
Contributor

Sometimes when using imported addReact instead of the public interface ManageIQ.component.addReact, webpack will create separate instances and of component registry, and they will not be rendered in UI.

Using the public registry fixes the issue.

@Hyperkid123
Copy link
Contributor Author

@miq-bot assign @himdel
@miq-bot add-label react
@miq-bot add-label bug

@miq-bot
Copy link
Member

miq-bot commented Aug 7, 2018

Checked commit Hyperkid123@1cceb7d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 👍

@himdel
Copy link
Contributor

himdel commented Aug 7, 2018

The bug itself should probably be fixed another way (caused by #3776). But for now this unblocks us, and it is what we're already doing in plugins, so a good change regardless, yay for consistency :).

@himdel himdel merged commit fed3162 into ManageIQ:master Aug 7, 2018
@himdel himdel added this to the Sprint 92 Ending Aug 13, 2018 milestone Aug 7, 2018
@Hyperkid123 Hyperkid123 deleted the fix-multiple-instances-of-component-definitions branch August 27, 2018 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants