Authenticator componentDidMount() doesn't call this.checkUser()
See original GitHub issueDescribe the bug
Authenticator componentDidMount
method doesn,t call this.checkUser()
in case if local storage contains Constants.SIGN_IN_WITH_HOSTEDUI_KEY
because localStorage.getItem
method returns string “false”
To Reproduce Steps to reproduce the behavior:
- login
- refresh page
- see nothing
Screenshots
Desktop (please complete the following information):
- OS: ubuntu
- Browser chrome
- Version 74.0.3729.108
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Why componentDidMount() is the better place to evaluate ...
Renderize a loading animation component if this.state.firsTime is true; After that, componentDidMount() will be called, and here will be called ...
Read more >React Lifecycle Methods Render And ComponentDidMount
When the component file is called it calls the render() method by default because that component needs to display the HTML markup or...
Read more >Handling user authentication with Firebase in your React ...
Learn how to add user authentication to your React apps using Firebase, allowing for both Google authentication and email/password sign-in.
Read more >disable browser back button react
Please look into componentDidMount () and componenetDidUnmount () methods. ... check user's authentication on your application's pages (i.
Read more >how to delete router history - cseliphotoagency.us
Try to use goBack (), go (n) for programmatically and for browser back button use ... I wanted to say that you should...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried to do exactly what you did. But the issue still exists. Could you please share your code snippet?
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels or Discussions for those types of questions.