Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillReceiveProps(nextProps) {
if (nextProps.loggingIn === false && this.state.initialLoggingIn) {
this.setState({ initialLoggingIn: false });
}
if (nextProps.user && !this.props.user) {
Sentry.setUserContext({ id: nextProps.user.id });
}
}