Hi, i'm doing the astro tutorial and i am at https://docs.astro.build/en/tutorial/6-islands/2/.
Unfortunately even tough i've copied the code the mode switcher works with just the first page that loads.
If i remove the viewTransitions the switcher works as intended.
I tried this too:
<button id="themeToggle" transition:persist>
<svg width="30px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
....
</svg>
</button>
This lets the button still work but reset the mode to light each time