Skip to content
Discussion options

You must be logged in to vote

Hi @AmirHosseinNP

<Suspense> does not automatically mean streaming.

Suspense is just the mechanism React uses when something can suspend.
If your page is pre-rendered (SSG) or server-rendered without streaming, Suspense can still be present and your output can still be fully prerendered HTML. The fallback is only meaningful if something actually suspends at runtime.

Make sure you pass plain serializable data (no Promises, no class instances, no Dates without conversion, no BigInt, no Response objects).

Server component:

import ClientView from "./ClientView";

export default async function Page() {
  const data = await getData(); // uses "use cache" inside getData
  return <ClientView data={

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AmirHosseinNP
Comment options

Answer selected by AmirHosseinNP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants