Skip to content

Commit

Permalink
Add lazy loading for UserPresenceList
Browse files Browse the repository at this point in the history
  • Loading branch information
choidabom committed Aug 24, 2024
1 parent 792f76c commit 8fdcd5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/headers/DocumentHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Toolbar,
Tooltip,
} from "@mui/material";
import { useEffect } from "react";
import { lazy, useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useNavigate } from "react-router-dom";
import { useUserPresence } from "../../hooks/useUserPresence";
Expand All @@ -21,7 +21,8 @@ import { selectWorkspace } from "../../store/workspaceSlice";
import DownloadMenu from "../common/DownloadMenu";
import ShareButton from "../common/ShareButton";
import ThemeButton from "../common/ThemeButton";
import UserPresenceList from "./UserPresenceList";

const UserPresenceList = lazy(() => import("./UserPresenceList"));

function DocumentHeader() {
const dispatch = useDispatch();
Expand Down

0 comments on commit 8fdcd5b

Please sign in to comment.