Server Context going back to the default value with client side routing
Unanswered
American Chinchilla posted this in #help-forum
American ChinchillaOP
When using next/link and createServerContext (for i18n here), if I go to another page, the context is set to the default value. I may be using createServerContext incorrectly so feel free to correct me.
CodeSandbox Link : https://codesandbox.io/p/sandbox/eager-butterfly-qjg7dn?file=%2Fapp%2Flang.tsx%3A9%2C1
(to recreate just click on the new or home link, the value should always be "en")
Also - if I use a client component to display the context, it works properly
Thanks
CodeSandbox Link : https://codesandbox.io/p/sandbox/eager-butterfly-qjg7dn?file=%2Fapp%2Flang.tsx%3A9%2C1
(to recreate just click on the new or home link, the value should always be "en")
Also - if I use a client component to display the context, it works properly
Thanks