File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
33import { useQueryState } from 'nuqs' ;
4- import { useState , useEffect } from 'react' ;
4+ import { useState , useEffect , Suspense } from 'react' ;
55import { Card } from '@/components/ui/card' ;
66import Link from 'next/link' ;
77import { checkToolState , InvalidTokenError } from '@/lib/tinybird' ;
88import { TOOLS , type AppGridItem , type ToolState } from '@/lib/constants' ;
99import TokenPrompt from '@/components/token-prompt' ;
1010import { SectionHeader } from '@/components/section-header' ;
11- import { Suspense } from 'react' ;
1211
13- export default function Home ( ) {
14- < Suspense >
15- < Page />
16- </ Suspense >
17- }
18-
19- function Page ( ) {
12+ function HomeContent ( ) {
2013 const [ token , setToken ] = useQueryState ( 'token' ) ;
2114 const [ toolStates , setToolStates ] = useState < Record < string , ToolState > > ( { } ) ;
2215 const [ isLoading , setIsLoading ] = useState ( false ) ;
@@ -178,3 +171,11 @@ function AppCard({
178171 </ Link >
179172 ) ;
180173}
174+
175+ export default function Home ( ) {
176+ return (
177+ < Suspense >
178+ < HomeContent />
179+ </ Suspense >
180+ ) ;
181+ }
You can’t perform that action at this time.
0 commit comments