Jan Amann

Results 436 comments of Jan Amann

Hmm, are we talking about the same thing? [PPR in Next.js](https://nextjs.org/docs/app/api-reference/next-config-js/ppr) refers to _partial prerendering_, but based on your comment I think you mean the same thing? I haven't had...

That's interesting, yes. There seems to be a new API coming for accessing top-level params: https://github.com/amannn/next-intl/issues/663#issuecomment-2449100558. Maybe that one will have a different behavior when used with PPR.

Ok, I was heads-down exploring implications of `dynamicIO` and `ppr` for `next-intl` over the last few days. Two insights led to minor changes for the upcoming `next-intl@4`: 1. https://github.com/amannn/next-intl/pull/1536 2....

I think [`rootParams`](https://github.com/vercel/next.js/pull/72837) might be required for this ([example test](https://github.com/vercel/next.js/pull/72837/files#diff-5ab0f484679e05b4859cb8276c75740e77fea84355875632ec79360df04864d8)).

Yes, `rootParams` will be required for static rendering with i18n routing. I found that `setRequestLocale` will not work with `dynamicIO`. It should be easy to adopt based on my experiments,...

Hey @MichalMoravik, if you're using i18n routing, you indeed need `rootParams` for PPR (see my comments above). It's currently available via `unstable_rootParams`, but it seems like the API will change...

@FacundoSpira Thanks for chiming in here! I guess in your `i18n/request.ts` you have some kind of dynamic function which fetches the user locale, right? That's likely triggering the warning. Based...

Related to using `cacheComponents`, I've opened a discussion over in the Next.js repository to get `dynamicParams = false` working for this mode: https://github.com/vercel/next.js/discussions/84991 If you're interested in this, please leave...

Since `cacheComponents` is available as stable in Next.js 16, the question for support with `next-intl` came up again. The tldr; is that `cacheComponents` is _not_ supported yet with the capabilities...

@zipme Yep, that's still up for debate as far as I know. What makes Server Actions a bit special is that they're put in a queue and by the time...