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 create-emotion-styled proxy with react-hot-loader and add appearance: none to search input #540

Merged
merged 3 commits into from
Jan 19, 2018

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Jan 17, 2018

What:
Fix create-emotion-styled proxy with react-hot-loader and add appearance: none to search input

Why:
react-hot-loader tries to access some properties on styled and because of the proxy it throws.

How:
Return the actual values when it's those properties

Checklist:

  • Documentation
  • Tests
  • Code complete

@codecov
Copy link

codecov bot commented Jan 17, 2018

Codecov Report

Merging #540 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
packages/create-emotion-styled/src/index.js 100% <100%> (ø) ⬆️

@emmatown emmatown merged commit db97fe7 into master Jan 19, 2018
@emmatown emmatown deleted the fix-with-react-hot-loader-and-search-appearance branch January 19, 2018 06:21
@theKashey
Copy link

Hi! If React-Hot-Loader would like to access another properties, to be more concrete - cast this component to string - should I just handle these additional keys here?

Sorry, it's just not quite clear why one need this Proxy.

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