I have the main client component which sets a cookie. At the same time, I have some other component which needs that cookie value so it gets it from the cookie store.
The problem is that the component that reads the cookie is not receiving a value in the SSR step. What are the solutions here?
Check out the demo in this repo: https://github.com/IonelLupu/next-client-cookies
I have the main client component which sets a cookie. At the same time, I have some other component which needs that cookie value so it gets it from the cookie store.
The problem is that the component that reads the cookie is not receiving a value in the SSR step. What are the solutions here?