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

not re-rendering on redux #1

Closed
dpereira411 opened this issue Apr 14, 2016 · 5 comments
Closed

not re-rendering on redux #1

dpereira411 opened this issue Apr 14, 2016 · 5 comments
Labels

Comments

@dpereira411
Copy link

its not working with redux, the reducers are not re-rendering the component

I'm using the default configuration and any actions that i trigger on the container are only presented to the screen after a window resize.

@dpereira411 dpereira411 changed the title not rerending on redux not re-renreding on redux Apr 14, 2016
@ctrlplusb
Copy link
Owner

Any chance you could share your configuration or an example of this. I'm happy to debug and fix it for you.

@ctrlplusb ctrlplusb added the bug label Apr 14, 2016
@ctrlplusb
Copy link
Owner

Had a think. Yep this is my issue. As a temp fix change your code so that the SizeMe HOC call is the last in your compose stack.

E.g.

import { compose, connect } from 'react-redux';
import SizeMe from 'react-sizeme';

function FooComponent(props) {
 ...
}

export compose(
  SizeMe(),
  connect(...)
)(FooComponent);

I'll release a fix tomorrow. Out celebrating Liverpool's epic win! :-D

@dpereira411 dpereira411 changed the title not re-renreding on redux not re-rendering on redux Apr 14, 2016
@dpereira411
Copy link
Author

thanks :) congratulations, great club and and great game

@ctrlplusb
Copy link
Owner

Thanks!

All sorted on your bug. Thanks for the report! 💖

@dpereira411
Copy link
Author

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants