Skip to content

Styled v5 - #9

Open
itsjoekent wants to merge 3 commits into
masterfrom
styled-5
Open

Styled v5#9
itsjoekent wants to merge 3 commits into
masterfrom
styled-5

Conversation

@itsjoekent

Copy link
Copy Markdown
Contributor

styled-components v5 was released a week ago and introduced a number of performance improvements, and thankfully, there was no breaking API changes introduced!

https://styled-components.com/releases#v5.0.0
https://styled-components.com/docs/faqs#what-do-i-need-to-do-to-migrate-to-v5

@itsjoekent
itsjoekent requested a review from jjandoc January 20, 2020 17:53
@itsjoekent

Copy link
Copy Markdown
Contributor Author

Hm, seems like this broke some stuff,

FAIL src/hooks/useBreakpoint/useBreakpoint.test.js
   Test suite failed to run

    Could neither find styled-components secret internals nor styled-components/lib/models/StyleSheet.js

      1 | import Adapter from 'enzyme-adapter-react-16';
      2 | import { configure } from 'enzyme';
    > 3 | import 'jest-styled-components';

@jjandoc

jjandoc commented Jan 21, 2020

Copy link
Copy Markdown

Hmm that failing test is odd. It's generating a lot f empty media queries. I can reproduce locally. It seems like a bug in the library.

@jjandoc jjandoc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Leaving a code review so this PR gets off my queue. 😭

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