From 6b1c25f6e8cc22d76c0066be6423f63e56af98fb Mon Sep 17 00:00:00 2001 From: David Johnston Date: Tue, 14 Jul 2026 15:07:05 +1000 Subject: [PATCH] Update responsive_cookies_for_react.mdx --- src/routes/posts/responsive_cookies_for_react.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/posts/responsive_cookies_for_react.mdx b/src/routes/posts/responsive_cookies_for_react.mdx index e317534e..42d2b42d 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 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 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:

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).