Skip to content

Commit

Permalink
Document redirect component
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Dec 31, 2023
1 parent 3ab0921 commit f797aec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/pages/redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Navigate } from "react-router-dom";
import { AppContext } from "../App.context";
import urls, { LAST_ROUTE_KEY } from "../urls";

// Redirects the user to the last route they visited,
// and handles any context changes that should happen before entering the new route
export const Redirect = () => {
const { toolStates } = useContext(AppContext);
const [route, setRoute] = useState<string>();
Expand Down

0 comments on commit f797aec

Please sign in to comment.