INNER CODE UNIT · JavaScript
NotFound
jigar-sable/instagram-mern · frontend/src/App.js:22
const NotFound = lazy(() => import('./components/Errors/NotFound'));
function App() {
const dispatch = useDispatch();
const { pathname } = useLocation();
toast.configure({
theme: 'colored',
position: toast.POSITION.TOP_RIGHT,
autoClose: 2500,
});
const { isAuthenticated } = useSelector((state) => state.user);
useEffect(() => {
dispatch(loadUser());
}, [dispatch]);