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
When using query with solid router, the routes are remounted when the query updates which unfortunately causes CSS animations to retrigger.
tanstack.mov
When the route mounts, the red rectangle will fade in which is expected. But after a few seconds it will re-flash again when the query updates because it seems the route DOM element is remounted.
Which project does this relate to?
Router
Describe the bug
When using query with solid router, the routes are remounted when the query updates which unfortunately causes CSS animations to retrigger.
tanstack.mov
When the route mounts, the red rectangle will fade in which is expected. But after a few seconds it will re-flash again when the query updates because it seems the route DOM element is remounted.
Complete minimal reproducer
https://github.com/PierBover/tanstack-solid-router-repro
Steps to Reproduce the Bug
npm i && npm run devThen navigate between the routes.
Expected behavior
The route should not be remounted and CSS animations should not be re-triggered. The query data should be updated reactively, probably?
Platform
I'm on macOS Sequoia and I've seen this happening in both Chrome and Firefox.