INNER CODE UNIT · JavaScript

Inbox

jigar-sable/instagram-mern · frontend/src/App.js:21

const Inbox = lazy(() => import('./components/Chats/Inbox'));
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());

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…