mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
Remove comments about guest page session handling
Removed comments explaining guest page rendering logic.
This commit is contained in:
parent
bdd02aa874
commit
caf61be460
1 changed files with 0 additions and 4 deletions
|
|
@ -25,10 +25,6 @@ export function EnsureWorkspace({ children }: { children: React.ReactNode }) {
|
|||
const isPublicAppPage =
|
||||
pathname === "/" &&
|
||||
["integrations", "mcp"].includes(searchParams.get("view") ?? "")
|
||||
// Only treat this as a guest page once the session state is actually known.
|
||||
// While the session is still pending we can't tell guest from logged-in, so
|
||||
// rendering the public page optimistically here causes a logged-in user to
|
||||
// see public content → loading shell → authenticated content (a double flash).
|
||||
const isGuestPublicAppPage = isPublicAppPage && !session && !isSessionPending
|
||||
const isOnboarding = pathname.startsWith("/onboarding")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue