Currently in componentDidMount() after checkLogin() and loading of the profile, there is a window.reload() call that refreshes the page which is done so that render() can be force called after the login check in componentDidMount() .
However, setting state correctly there may trigger the same render() more efficiently without having to refresh the whole page.
Currently in componentDidMount() after checkLogin() and loading of the profile, there is a window.reload() call that refreshes the page which is done so that render() can be force called after the login check in componentDidMount() .
However, setting state correctly there may trigger the same render() more efficiently without having to refresh the whole page.
THis needs to be explored further.