Skip to content

Suspense only shows its fallback once (on page load), when async component suspends, the Suspense wrapper doesn't fall back. All components working however #50563

Discussion options

You must be logged in to vote

I've faced similar issue, and fix the problem when i add key prop to Suspense, like:

<Suspense key={suspenseKey} fallback={<Loading />}>
  {/*@ts-ignore*/}
  <DataTableComponent />
</Suspense>

suspenseKey could be the unique key relevant to the searchParams.

hope it helps!

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@singleseeker
Comment options

@Neo-Ciber94
Comment options

@christopher-caldwell
Comment options

@samithf
Comment options

Answer selected by kyleatcolenso
Comment options

You must be logged in to vote
4 replies
@MelancholYA
Comment options

@engagepy
Comment options

@RestartDK
Comment options

@zacBkh
Comment options

Comment options

You must be logged in to vote
2 replies
@engagepy
Comment options

@HamedSiaban
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet