AbhishekA
Convex Community2y ago
12 replies
Abhishek

React Suspense is not working up with convex

I wrapped my client parent component with suspense, the parent client component is using useQuery hook and and based on state the query is changing.

I want to ask am I doing it in a wrong way cuz my suspense fallback is clearing not showing up

This how i am wrapping my parent component

<main className="flex min-h-screen flex-col items-center">
      <TrendingSection />
      <Suspense
        fallback={<div className="h-40 w-40 bg-slate-400">Loading...</div>}
      >
        <WeekHeader />
      </Suspense>
</main>
Was this page helpful?