#Can’t get the theme toggle from the “build a blog” tutorial to work
1 messages · Page 1 of 1 (latest)
Hi it's due to your use of View Transitions. You can use the updated script on this page that uses astro:page-load for example https://docs.astro.build/en/tutorials/add-view-transitions/#update-scripts
Have a look at this section on why you need to do this https://docs.astro.build/en/tutorials/add-view-transitions/#update-scripts