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

Redux's connect() is not applied when overriding styles with styled() #2266

Closed
kirillku opened this issue Dec 4, 2018 · 1 comment
Closed

Comments

@kirillku
Copy link

kirillku commented Dec 4, 2018

Reproduction

Seems that in v4 Redux's connect() is not applied when wrapping connected styled component in styled(). I think it's somehow related to #2246.

codesandbox example

Expected Behavior

Should have props from Redux's connect(), check FixedStyledConnectedBox

Actual Behavior

Seems that Redux's connect() was not called and props are not passed. There is 3 components mounted and connect() is only called 2 times, you can see in console.

@mxstbr
Copy link
Member

mxstbr commented Dec 4, 2018

You have to use the newest version of react-redux for forwardRef support, I'm pretty sure that's the issue here: reduxjs/react-redux#914

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

No branches or pull requests

2 participants