Flow comment

This commit is contained in:
Jori Lallo
2017-05-29 18:35:07 -07:00
parent 0bd3dd1a72
commit a4ca14ab9d

View File

@ -20,8 +20,8 @@ class SlackAuth extends React.Component {
state: { redirectTo?: string }; state: { redirectTo?: string };
state = {}; state = {};
// $FlowFixMe not sure why this breaks // $FlowIssue Flow doesn't like async lifecycle components https://github.com/facebook/flow/issues/1803
componentDidMount = async () => { async componentDidMount(): void {
const { error, code, state } = queryString.parse( const { error, code, state } = queryString.parse(
this.props.location.search this.props.location.search
); );
@ -53,7 +53,7 @@ class SlackAuth extends React.Component {
: this.setState({ redirectTo: '/auth/error' }); : this.setState({ redirectTo: '/auth/error' });
} }
} }
}; }
render() { render() {
return ( return (