© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Shmulik Kaminker
I try to set the user default language by a cookie in the server with the MERN starter. What is the best way to get the cookie on each request from the server? may be set the state in server.js with the current lang?
Alexandru Spinu
Chief Technology Officer @ www.sevenlanes.com
What is the problem that you are trying to solve ultimately?
Actually it's two problems:
For now i do that in the componnentDidMount Funcrion in the app.js, but it's ugly and not the right way.
Because it done by the client side, the DOM show's for a few seconds the normal header menu and only after that change to the user menu.
Alexandru Spinu
Chief Technology Officer @ www.sevenlanes.com
What is the problem that you are trying to solve ultimately?