Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Sidebar: the guest Sign up / Log in row under Suspense

Adarsh0a54bc7b173b
diff --git a/src/components/app-sidebar.tsx b/src/components/app-sidebar.tsx
index 91fc16c0..b24cb806 100644
--- a/src/components/app-sidebar.tsx
+++ b/src/components/app-sidebar.tsx
@@ -309,7 +309,7 @@ function SearchRow() {
);
}
-/** Public sign-up, signed out: "Sign up" and "Log in", coming back to this page. */
+/** Public sign-up, signed out: "Sign up" and "Log in", coming back to this page (under Suspense: it reads the path). */
function GuestRow() {
const guest = useIsGuest();
const pathname = usePathname();
@@ -387,7 +387,9 @@ export function AppSidebar() {
)}
</div>
<SidebarMenu>
- <GuestRow />
+ <Suspense fallback={null}>
+ <GuestRow />
+ </Suspense>
<SearchRow />
<SidebarMenuItem>
<SidebarMenuButton asChild tooltip="New creation" className="h-8 text-[13px] has-[[data-pending]]:bg-sidebar-accent">