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

Support shouldForwardProp in styled's options #616

Merged
merged 3 commits into from
Apr 6, 2018

Conversation

Andarist
Copy link
Member

@Andarist Andarist commented Apr 5, 2018

related to #611

Checklist:

  • Documentation
  • Tests
  • Code complete

key !== 'theme' && key !== 'innerRef'
export const testAlwaysTrue = () => true

export const omitAssign: (
export const pickAssign: (
Copy link
Member Author

Choose a reason for hiding this comment

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

imho omit was misleading here, and pick is better suited because pickAssign actually picks properties if predicate (testFn) returns truthy, omit would pick them if predicate would return falsy

@Andarist
Copy link
Member Author

Andarist commented Apr 5, 2018

There are still some flow errors, it seems type inference doesnt handle this accurately. Let me know if u want this refactored or should I just use FlowFixMe? Kinda hating to adjust actual, valid, code just to satisfy inference algorithm

@emmatown
Copy link
Member

emmatown commented Apr 5, 2018

Use FlowFixMe

@Andarist
Copy link
Member Author

Andarist commented Apr 5, 2018

Done

@codecov
Copy link

codecov bot commented Apr 5, 2018

Codecov Report

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

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

@emmatown emmatown merged commit d19b947 into emotion-js:master Apr 6, 2018
@Andarist Andarist deleted the should-forward-prop branch April 6, 2018 08:32
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.

3 participants