this.setState not updating state
问题 For some reason my this.state call is not updating the state in my roleClicked function. I can't seem to figure out what the problem is. Here is the code: import React, { Component } from 'react' import { Redirect } from 'react-router-dom'; import instance from '../../../config/axios'; import ls from 'local-storage'; import Sidenav from '../../layout/Sidenav' import isLoggedIn from '../../../helpers/isLoggedIn'; import redirectToLogin from '../../../helpers/redirectToLogin'; import