Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

fix: React.Fragment complaining about width/height #219

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Sep 4, 2019

🐛 Bug Fix

Passing width and height to React.Fragment cause the console to print out warnings about unexpected props.

@kristw kristw requested a review from a team as a code owner September 4, 2019 01:19
@kristw kristw added the reviewable Ready for review label Sep 4, 2019
@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #219 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #219   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files         130      130           
  Lines        1416     1416           
  Branches      358      358           
=======================================
  Hits         1415     1415           
  Partials        1        1
Impacted Files Coverage Δ
...es/superset-ui-chart/src/components/SuperChart.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c83ba1f...ae63ea3. Read the comment docs.

@netlify
Copy link

netlify bot commented Sep 4, 2019

Deploy preview for superset-ui ready!

Built with commit ae63ea3

https://deploy-preview-219--superset-ui.netlify.com

Copy link
Contributor

@williaster williaster left a comment

Choose a reason for hiding this comment

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

ah, I think typical Components don't complain if you add extra props, but have also seen custom React prop validators like forbidExtraProps that do throw errors when you pass unknown props. They must do something like that, they're pretty good with mis-use warnings.

@kristw kristw merged commit 3e8ca39 into master Sep 4, 2019
@delete-merged-branch delete-merged-branch bot deleted the kristw--fix-wrapper branch September 4, 2019 04:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
reviewable Ready for review size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants