MCPcopy
hub / github.com/simstudioai/sim / HomePage

Function HomePage

apps/sim/app/workspace/[workspaceId]/home/page.tsx:14–30  ·  view source on GitHub ↗
({ params }: { params: Promise<{ workspaceId: string }> })

Source from the content-addressed store, hash-verified

12}
13
14export default async function HomePage({ params }: { params: Promise<{ workspaceId: string }> }) {
15 const { workspaceId } = await params
16
17 const queryClient = getQueryClient()
18 const listsPrefetch = prefetchHomeLists(queryClient, workspaceId)
19
20 const session = await getSession()
21 await listsPrefetch
22
23 return (
24 <HydrationBoundary state={dehydrate(queryClient)}>
25 <Suspense fallback={<HomeFallback />}>
26 <Home userName={session?.user?.name} userId={session?.user?.id} />
27 </Suspense>
28 </HydrationBoundary>
29 )
30}

Callers

nothing calls this directly

Calls 2

getQueryClientFunction · 0.90
prefetchHomeListsFunction · 0.90

Tested by

no test coverage detected