From a4ca14ab9dbdfe8e4a29ae0cc01e34cb11d40bc8 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 29 May 2017 18:35:07 -0700 Subject: [PATCH] Flow comment --- frontend/scenes/SlackAuth/SlackAuth.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/scenes/SlackAuth/SlackAuth.js b/frontend/scenes/SlackAuth/SlackAuth.js index 8dffa35ed..123f934c3 100644 --- a/frontend/scenes/SlackAuth/SlackAuth.js +++ b/frontend/scenes/SlackAuth/SlackAuth.js @@ -20,8 +20,8 @@ class SlackAuth extends React.Component { state: { redirectTo?: string }; state = {}; - // $FlowFixMe not sure why this breaks - componentDidMount = async () => { + // $FlowIssue Flow doesn't like async lifecycle components https://github.com/facebook/flow/issues/1803 + async componentDidMount(): void { const { error, code, state } = queryString.parse( this.props.location.search ); @@ -53,7 +53,7 @@ class SlackAuth extends React.Component { : this.setState({ redirectTo: '/auth/error' }); } } - }; + } render() { return (