How does next-intl use the request context of the next app? #1949
Unanswered
samuelreichor
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey, glad to hear that you like it! 😊 There's a bit of technical background on how the RSC integration works in the docs. The general problem is that RSC doesn't support passing context along during rendering. To work around this, Another topic is that a top-level segment like the locale can currently not be read in Server Components. To work around this, the locale is passed as a request header to components: But luckily, this is going to change in the future: vercel/next.js#80255 So cool that you're from Austria too! 🤜 🤛 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I'm currently doing a deep dive into react request context and building my own library that uses data of the request context. I stumbled across this awesome approach but can't wrap my head around it. Maybe someone can explain me the pattern that next-intl uses to do so.
@amannn By the way I'm also from Austria :D If you want to drink a coffee (or beer) feel free to reach out!
Beta Was this translation helpful? Give feedback.
All reactions