-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for ppr
and dynamicIO
#1493
Comments
Hi @amannn, thank you for the great work on next-intl! Just to confirm, does next-intl currently not support export default async function Layout(
props: { params: Promise<{locale: string}> }
) {
const params = await props.params;
setRequestLocale(params.locale); Would this approach opt out of static rendering? |
Hmm, are we talking about the same thing? PPR in Next.js refers to partial prerendering, but based on your comment I think you mean the same thing? I haven't had the time to experiment with PPR yet, but am planning to do this in the next few days. I'd be curious if I'll update this thread here with my findings! |
Thanks for the update! Yes, I was referring to partial prerendering (I updated my comment). I would have expected It's still unclear whether |
That's interesting, yes. There seems to be a new API coming for accessing top-level params: #663 (comment). Maybe that one will have a different behavior when used with PPR. |
Ok, I was heads-down exploring implications of Two insights led to minor changes for the upcoming
Apart from this, my impression was that I made a few notes during my exploration, but it mostly comes down to apps with i18n routing requiring these currently missing pieces:
For apps without i18n routing, I think |
I believe, anything that is async is considere dynamic under dynamicIO |
would like to see a i18n routing example working with staticly generated pages using dynamicIO |
I think |
Next.js is changing the rendering behavior. It's still very early, and things are moving, but it would be interesting to see if we can adapt
next-intl
to better suit the needs of these rendering modes.For now, this issue is meant to collect related resources.
Related
now
withexperimental.dynamicIO
in Next.js canary versions #1464The text was updated successfully, but these errors were encountered: