mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 06:49:50 +02:00
Prevent a bunch more stuff from re-rendering
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user