Open forste opened 6 years ago
@forste I don't think this change would work. The await
is on the function userHasAuthenticated
that does not return anything.
Both userHasAuthenticated
and the this.setState({ isAuthenticating: false })
should get batched together. So you shouldn't have a case where the unauthenticated content is getting rendered.
Are you seeing otherwise?
this.setState({ isAuthenticating: false });
is called beforethis.userHasAuthenticated(true);
finishes, which causes rendering unauthenticated content