Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
3 replies
Samyar

Fixing React video questions came up to my mind !

* do I have to work full stack to use the benefits of async components?
* Instead of Prisma any promise-based function will do the same right?
* what about useQuery(). it's a hook so is it gonna work just like Theo showed us
like :

const Component = async () => {
  const {data} = useQuery(async function)

  return <>{data}<>
}

const CompoentWrapper = () => {
  return (
  <Suspense fallback={...}>
    <Component />  
  </Suspense>
)
} 
unknown.png
Was this page helpful?