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

Rating prevents parent Component from calling ComponentDidMount function #34

Closed
claradaia opened this issue Dec 2, 2016 · 1 comment

Comments

@claradaia
Copy link

I'm importing the module with
var Rating = require('react-rating');

That alone (without using the component anywhere) causes the main component in the file not to call the ComponentDidMount function. It renders properly, except for the properties this function should provide.

It also causes this warning, whether or not I instantiate a Rating component:
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op.

@claradaia
Copy link
Author

Sorry, apparently it's something else on my code. I had tried removing the import before and it seemed to work, but not anymore.

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

1 participant