Auth0 ProtectedRoute component preventing component from changing with state
问题 I followed the Auth0 React Authentication guide written here: https://auth0.com/blog/complete-guide-to-react-user-authentication And implemented the ProtectedRoute component as outlined in the tutorial: import React from "react"; import { Route } from "react-router-dom"; import { withAuthenticationRequired } from "@auth0/auth0-react"; import { Loading } from "../components/index"; const ProtectedRoute = ({ component, ...args }) => ( <Route component={withAuthenticationRequired(component, {