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

fix(ScriptjsLoader): Fix setState warning #307

Merged
merged 1 commit into from
Oct 4, 2016

Conversation

emilecantin
Copy link
Contributor

Make the callback from scriptjs a no-op when unmounting the component.

There was a corner case where the component would be unmounted while scriptjs was doing its thing. The callback would then call setState, thus triggering a warning from React.

Make the callback from scriptjs a no-op when unmounting the component.
@tomchentw tomchentw merged commit 999fd89 into tomchentw:master Oct 4, 2016
@tomchentw
Copy link
Owner

Released v5.1.1

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