#Server HTML does not match client HTML

4 messages · Page 1 of 1 (latest)

regal gulch
#

Hello, I have a need to grab some query string parameters and add them to a list. I'm using @nanostores/persistent to persist these values across pages. I'm getting many warnings in the console saying that my server HTML doesn't match my client HTML, but that's kind of the point.

Here's a minimal reproduction: https://stackblitz.com/edit/withastro-astro-a49qu7?file=src%2Fcomponents%2FItems.tsx

Just add some query string parameters in the browser preview like ?items=apple,orange,cheese to see the browser errors.

Am I doing this the wrong way?

Run official live example code for Astro Basics, created by Withastro on StackBlitz

split tundra
regal gulch
#

I'm not seeing the error anymore either after I got back on this morning

#

so weird