You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro v5.1.2
Node v20.16.0
System Linux (x64)
Package Manager bun
Output static
Adapter none
Integrations @astrojs/tailwind
If this issue only occurs in one browser, which browser is a problem?
All browser
Describe the Bug
When I add <ClientRouter /> for animations, there are errors when loading the theme on different pages, and the button to change the theme is also disabled.
Everything works correctly if I don't use <ClientRouter />.
without the client Router, the script inside the ToggleTheme component is executed on every full page load.
The ClientRouter replaces full page loads with soft navigation. To ensure that the script is still executed on each navigation, you have to wrap it in an astro:page-load listener like this
Astro Info
If this issue only occurs in one browser, which browser is a problem?
All browser
Describe the Bug
When I add
<ClientRouter />
for animations, there are errors when loading the theme on different pages, and the button to change the theme is also disabled.Everything works correctly if I don't use
<ClientRouter />
.What's the expected result?
Animations without bugs
Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/alisanoelia/error-clientrouter
Participation
The text was updated successfully, but these errors were encountered: