diff --git a/cloud/app/src/routes/index.tsx b/cloud/app/src/routes/index.tsx index 7a43f262..3474a993 100644 --- a/cloud/app/src/routes/index.tsx +++ b/cloud/app/src/routes/index.tsx @@ -23,7 +23,6 @@ function CopyStatus() { const isLoggedIn = query(async () => { "use server" const actor = await getActor() - console.log(actor) if (actor.type === "account") { const workspaces = await withActor(() => Account.workspaces()) throw redirect(`/workspace/${workspaces[0].id}`) @@ -34,7 +33,7 @@ const isLoggedIn = query(async () => { export default function Home() { - const workspaceId = createAsync(() => isLoggedIn(), { + createAsync(() => isLoggedIn(), { deferStream: true, }) onMount(() => { diff --git a/cloud/app/src/routes/workspace.tsx b/cloud/app/src/routes/workspace.tsx new file mode 100644 index 00000000..e2ecb182 --- /dev/null +++ b/cloud/app/src/routes/workspace.tsx @@ -0,0 +1,10 @@ +import { RouteSectionProps } from "@solidjs/router"; + +export default function WorkspaceLayout(props: RouteSectionProps) { + return ( +