-
Notifications
You must be signed in to change notification settings - Fork 99
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: Fix invalid DOM props and other minor JS console errors #3915
Conversation
This fixes various minor errors that do not visibly affect the content visible to users but appear in the JS console. This includes: - internal props are no longer passed to the DOM - invalid prop types are fixed - better handling of models and missing data - tr elements are nested in the correct parent elements - keys in reference lists are made unique - correct functions are defined for gmp mock in tests Fixing these errors makes it easier to spot errors that do have an effect on the visible content.
Conventional Commits Report
🚀 Conventional commits found. |
Codecov Report
@@ Coverage Diff @@
## main #3915 +/- ##
==========================================
+ Coverage 59.95% 59.97% +0.02%
==========================================
Files 1022 1023 +1
Lines 25137 25163 +26
Branches 7452 7462 +10
==========================================
+ Hits 15070 15092 +22
- Misses 9119 9123 +4
Partials 948 948
📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice! Something I would loved to be fixed years ago already.
Maybe make it even simpler to exclude props by adding something like
const styledExcludeProps = (styledComponent, excludedProps) => styledComponent.withConfig(
excludePropsConfig(excludedProps)
);
usage
styledExcludeProps(styled.div`
...
`, ["foo", "bar"])
What
This fixes various minor errors that do not visibly affect the content visible to users but appear in the JS console.
This includes:
Why
Fixing these errors makes it easier to spot errors that do have an effect on the visible content.
References
GEA-350
Checklist