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

Make the theme prop always exist #364

Merged
merged 1 commit into from
Oct 1, 2017
Merged

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Oct 1, 2017

What:

Make the theme prop always exist

Why:

Because otherwise when people are trying to use props.theme.something and there isn't a ThemeProvider they'll get cannot read property of undefined.

How:

Always do an assign for the theme prop.

Checklist:

  • Documentation N/A
  • Tests
  • Code complete

@codecov
Copy link

codecov bot commented Oct 1, 2017

Codecov Report

Merging #364 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #364      +/-   ##
==========================================
- Coverage   97.72%   97.72%   -0.01%     
==========================================
  Files          22       22              
  Lines         660      658       -2     
  Branches      151      150       -1     
==========================================
- Hits          645      643       -2     
  Misses         11       11              
  Partials        4        4
Impacted Files Coverage Δ
packages/react-emotion/src/index.js 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 32d1b57...7ad4ce3. Read the comment docs.

@emmatown emmatown merged commit 8cd44ac into master Oct 1, 2017
@emmatown emmatown deleted the make-theme-prop-always-exist branch October 1, 2017 02:49
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.

2 participants