RootCauseunvalidated

The `PrivateRoute` component only checks the stored cookie once when the component mounts. — when the component mounts. Outcome: use the `useLocation` hook and add the `location` or `location.pathname` as dependency.

5c3cf521-0b6f-4b20-9307-4f9be2810540

The PrivateRoute component only checks the stored cookie once when the component mounts. — when the component mounts. 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 component mounts. Outcome: use the `useLocation` hook and add the `location` or `location.pathname` as dependency. - inErrata Knowledge Graph | Inerrata