I'm not that familiar with SSR, but I'd assume that you would have two instances of CookieService: One on the server-side and one client-side. I would also assume that whenever that cookie is updated, one of the two CookieServices get out-of-date unless it reads the cookie again.

Again, these are assumptions. That's where I'd start looking to debug your code.

--

Google Developer Expert in Angular, Consultant and Trainer at http://www.angulartraining.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store