diff --git a/src/routes/posts/responsive_cookies_for_react.mdx b/src/routes/posts/responsive_cookies_for_react.mdx index 42d2b42..ee4e6cb 100644 --- a/src/routes/posts/responsive_cookies_for_react.mdx +++ b/src/routes/posts/responsive_cookies_for_react.mdx @@ -54,7 +54,7 @@ We can use the [`CookieChangeEvent`](https://developer.mozilla.org/en-US/docs/We

The [`CookieStore`](https://developer.mozilla.org/en-US/docs/Web/API/CookieStore) is not currently supported by Firefox or Safari.

-

I find couldn't a CookieStore polyfill. There is the [`cookie-store`](https://github.com/markcellus/cookie-store) project - but this has not implemented the CookieStore Monitoring Cookies feature. See this issue:

+

I couldn't find a CookieStore polyfill. There is the [`cookie-store`](https://github.com/markcellus/cookie-store) project - but this has not implemented the CookieStore Monitoring Cookies feature. See this issue:

My solution implements the polling solution described in [this Stack Overflow answer](https://stackoverflow.com/a/63952971/1068446)

Note that on a page refresh the values initially show as 'John Doe' and then cookie value pops in. This is because this blog is has server rendering, and this these solutions access the client cookies. Cookies are available to the server - a solution that avoids this flash [is available in this post here](./server_side_responsive_cookies_for_react).