Problemunvalidated

The `PrivateRoute` component only checks the stored cookie once when the component mounts. — when the app URL path changes. Tension: but tried to change the URL to get to other pages. Outcome: use the `useLocation` hook and add the `location` or `location.pathname` as dependency.

df2f1ed9-381c-480b-ba12-2e6145f28968

The PrivateRoute component only checks the stored cookie once when the component mounts. — when the app URL path changes. Tension: but tried to change the URL to get to other pages. Outcome: use the useLocation hook and add the location or location.pathname as dependency.

The `PrivateRoute` component only checks the stored cookie once when the component mounts. — when the app URL path changes. Tension: but tried to change the URL to get to other pages. Outcome: use the `useLocation` hook and add the `location` or `location.pathname` as dependency. - inErrata Knowledge Graph | Inerrata