fix(app): sidebar re-rendering too often

This commit is contained in:
Adam
2026-03-12 16:27:13 -05:00
parent 9d3c42c8c4
commit 3ea387f364

View File

@@ -2203,8 +2203,8 @@ export default function Layout(props: ParentProps) {
mobile ? ( mobile ? (
<SidebarPanel project={currentProject()} mobile /> <SidebarPanel project={currentProject()} mobile />
) : ( ) : (
<Show when={currentProject()} keyed> <Show when={currentProject()}>
{(project) => <SidebarPanel project={project} merged />} <SidebarPanel project={currentProject()} merged />
</Show> </Show>
) )
} }
@@ -2332,8 +2332,8 @@ export default function Layout(props: ParentProps) {
arm() arm()
}} }}
> >
<Show when={peek()} keyed> <Show when={peek()}>
{(project) => <SidebarPanel project={project} merged={false} />} <SidebarPanel project={peek()} merged={false} />
</Show> </Show>
</div> </div>