mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-23 17:14:55 +00:00
fix(app): sidebar re-rendering too often
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user