auth0-developer-hub / spa_react_javascript_hello-world

This JavaScript code sample demonstrates how to implement authentication in a React application that uses React Router 6. You can integrate the Auth0 React SDK with React Router 6 to create route guards in React.
Apache License 2.0
64 stars 86 forks source link

Unnecessary boolean checkup? #6

Open tk-425 opened 1 year ago

tk-425 commented 1 year ago

I'm currently reading the "React Authentication By Example" article and questioning the need for the let isMounted = true statement. Since isMounted will always be true, I'm unsure if it is required. The same statement can also be found in src/pages/admin-page.js and src/pages/public-page.js.