-
Love the project! I'm new to react ecosystem, probably I just missed this part in the documentation. I'm looking for a way to switch the language at any given page. For example, a user visit a random page say the This is my client Language selection component, I imported this component into my root layout. But I don't understand in this example, the console.log printed twice, the first time returns null and the second time returns a valid path. This results in Do you know how do I do this properly? Or is there a better way to achieve this feature?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @georgehua and thanks for the question! That's a good point, the initial render with |
Beta Was this translation helpful? Give feedback.
Hey @georgehua and thanks for the question! That's a good point, the initial render with
null
is there for historic reasons and can now be improved (see the first task in the task list at #149). There will soon be a new version that improves this!