diff --git a/src/App.js b/src/App.js index 3822221..7bc646d 100644 --- a/src/App.js +++ b/src/App.js @@ -5,7 +5,7 @@ import { Route, Switch } from "react-router-dom"; import "./api/axiosDefaults"; import SignUpForm from "./pages/auth/SignUpForm"; import LoginForm from "./pages/auth/LoginForm"; -import { createContext, useState } from "react"; +import { createContext, useEffect, useState } from "react"; import axios from "axios"; export const CurrentUserContext = createContext(); @@ -22,18 +22,26 @@ function App() { } }; + useEffect(() => { + handleMount(); + }, []); + return ( -
Page not found!
} /> -Page not found!
} /> +