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: optimize component registration for top level stateful components #36

Merged
merged 1 commit into from
Mar 17, 2020

Conversation

DylanPiercey
Copy link
Contributor

@DylanPiercey DylanPiercey commented Mar 17, 2020

Description

Currently when we are in dependenciesOnly mode in the plugin, we require all dependencies for a component, and register the component class if it exists. This means for top stateful components we actually register the component twice since stateful components already include code to register themselves. This optimizes this by checking to see if the dependency for the component that we are adding is itself, and skips the registration.

Checklist:

  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@DylanPiercey DylanPiercey merged commit 4d1787b into master Mar 17, 2020
@DylanPiercey DylanPiercey deleted the optimize-component-register branch April 5, 2021 15:30
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.

1 participant