Skip to content
Discussion options

You must be logged in to vote

In the repository, with only cacheComponents enabled, IIRC, this route communicates that, it is OK to serve a fallback, or that a fallback UI can be used in place because the await params, happens from within a Suspense boundary.

What you'd need to do is accept a blocking UI:

export default async function Page(props: PageProps<"/posts/[slug]">) {
  console.log("rendering Page");
  const { slug } = await props.params;

// rest of the app

Now there's no good UI we could serve instead, so the framework does a blocking render. That produces a result that can be saved, associated with a URL.

It is very rough, though, as your repro shows, moving the params access under a Suspense boundary, disa…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mdj-uk
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
2 participants