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: small optimization to add extra gaurd to updatePropDefaults #482

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

joshhowenstine
Copy link
Contributor

Description

Small optimization to withThemeStyles to make sure updatePropDefaults does not run if the styleManager does not have any props

Testing

Everything should work ask previously expected. The entire _updatePropDefaults method in withThemeStyles should not run each time a component is created unless props are defined in the theme.

Automation

NA

Checklist

  • all commented code has been removed
  • any new console issues have been resolved
  • code linter and formatter has been run
  • test coverage meets repo requirements
  • PR name matches the expected semantic-commit syntax

@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

1 similar comment
@svc-lightning-ui-components
Copy link
Collaborator

Test Execution Failed.

@ImCoolNowRight ImCoolNowRight merged commit 589b9e1 into develop Mar 6, 2024
9 checks passed
@ImCoolNowRight ImCoolNowRight deleted the fix/updatePropDefaults-optimization branch March 6, 2024 21:10
svc-lightning-ui-components pushed a commit that referenced this pull request Mar 7, 2024
# [@lightningjs/ui-components-v2.20.4](https://github.com/rdkcentral/Lightning-UI-Components/compare/@lightningjs/ui-components-v2.20.3...@lightningjs/ui-components-v2.20.4) (2024-03-07)

### Bug Fixes

* remove circular dependency warnings when generating bundled ts file ([#481](#481)) ([f981f8b](f981f8b))
* small optimization to add extra gaurd to updatePropDefaults ([#482](#482)) ([589b9e1](589b9e1))
@svc-lightning-ui-components
Copy link
Collaborator

🎉 This PR is included in version @lightningjs/ui-components-v2.20.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants