Prevent a bunch more stuff from re-rendering

This commit is contained in:
Gregory Schier
2024-12-31 23:24:41 -08:00
parent dfca17f9b7
commit 80119f6574
13 changed files with 211 additions and 174 deletions

View File

@@ -317,7 +317,7 @@ export function Sidebar({ className }: Props) {
setShowMainContextMenu({ x: e.clientX, y: e.clientY });
}, []);
const mainContextMenuItems = useCreateDropdownItems();
const mainContextMenuItems = useCreateDropdownItems({ folderId: null });
// Not ready to render yet
if (tree == null) {