You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use NextIntlClientProvider along with useMessages as shown in the docs example or maybe it would be better to wrap smaller components instead of RootLayout, like here
However, I'm concerned that wrapping the main layout in the Provider won't result in moving everything to the client side? Could I please have a brief explanation of how this works? I would like to avoid passing many props to client-side components as shown in this example Since in my case, it might happen that there will be a significant number of props, additionally passed down several times.
I would be very grateful for a brief explanation of the impact of using NextIntlClientProvider and useMessages in layouts whose code is executed on the server side 🙏
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use
NextIntlClientProvider
along withuseMessages
as shown in the docs example or maybe it would be better to wrap smaller components instead of RootLayout, like hereHowever, I'm concerned that wrapping the main layout in the Provider won't result in moving everything to the client side? Could I please have a brief explanation of how this works? I would like to avoid passing many props to client-side components as shown in this example Since in my case, it might happen that there will be a significant number of props, additionally passed down several times.
I would be very grateful for a brief explanation of the impact of using
NextIntlClientProvider
anduseMessages
in layouts whose code is executed on the server side 🙏Beta Was this translation helpful? Give feedback.
All reactions