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

Give HomePage an unmounted guard #4556

Merged
merged 2 commits into from
Jul 11, 2017
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 11, 2017

Also add missing return in error-handling path

Also add missing return in error-handling path
Copy link
Contributor

@lukebarnard1 lukebarnard1 left a comment

Choose a reason for hiding this comment

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

LGTM apart from probable _t

if (this._unmounted) {
return;
}

if (err || response.status < 200 || response.status >= 300) {
console.log(err);
this.setState({ page: "Couldn't load home page" });
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should _t this?

Copy link
Member Author

Choose a reason for hiding this comment

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

probably, but that sounds like a separate problem

@richvdh richvdh merged commit d25b441 into develop Jul 11, 2017
@richvdh richvdh deleted the rav/homepage_unmounted_guard branch July 14, 2017 13:41
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