Skip to content

Give HomePage an unmounted guard#4556

Merged
richvdh merged 2 commits intodevelopfrom
rav/homepage_unmounted_guard
Jul 11, 2017
Merged

Give HomePage an unmounted guard#4556
richvdh merged 2 commits intodevelopfrom
rav/homepage_unmounted_guard

Conversation

@richvdh
Copy link
Copy Markdown
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
Copy Markdown
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 (err || response.status < 200 || response.status >= 300) {
console.log(err);
this.setState({ page: "Couldn't load home page" });
Copy link
Copy Markdown
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
Copy Markdown
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