Replies: 1 comment
-
Sounds absolutely fine to me what you’ve built so far! Did you encounter any performance issues since you’re asking? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In our application, we have some fairly interactive parts of the site which are mainly client components. I just wanted to clarify the performance impact and whether we are doing things in the "right" way.
What we've built so far
We have a fairly interactive part of the application (
/feedback
with various subroutes). The pages within these routes are client components due to having a lot of interactivity.We are wrapping the
layout.tsx
file on this route with theNextIntlClientProvider
and picking the feedback messages to pass through:My question
Let's say on a page component I am calling
useTranslations
:const t = useTranslations('feedback');
The
feedback
strings contain all the strings needed for that page. Given this context, are there performance implications if I calluseTranslations
again in child components? Or should I be passing down only the specific strings needed for each child component from the parent page component (for example in atranslations
prop which holds an object of strings needed in that child component)?Beta Was this translation helpful? Give feedback.
All reactions