I could just be improperly using the router application, but this seems like a bug.
loading/preloading a page will apply it's CSS to the page you are currently on, or carry over, despite that page not importing the CSS.
My bad, after discussing this with friends, they mentioned this is intended behavior.
I wasn't able to find anything on this, but perhaps I'm just bad at googling :^)
Describe the bug
I could just be improperly using the router application, but this seems like a bug. loading/preloading a page will apply it's CSS to the page you are currently on, or carry over, despite that page not importing the CSS.
Your Example Website or App
https://stackblitz.com/edit/solidjs-templates-ddkxtj
Steps to Reproduce the Bug or Issue
Expected behavior
Another page's CSS should not be applied to the current page when loading another page.
Screenshots or Videos
https://github.com/solidjs/solid-router/assets/33640860/62474034-1e00-4791-95f1-b73402b09ac6
Platform
Additional context
No response