S
SolidJS2mo ago
gsoutz

I can't load app.scss inside app.tsx and load globally on all pages

app.tsx has this: import "./app.scss"; Which sets the background color of the page. If I load the home page this style is loaded. But If I navigate to profile then navigate back to home page, styling is gone. as this app.scss has never been imported. If I put this import like this on Home.tsx
import "~/app.scss";
import './Home.scss'
import "~/app.scss";
import './Home.scss'
like this, it loads on every case as expected.
1 Reply
mdynnl
mdynnl2mo ago
Is this a solid start app? There's been some css issues with solid start, though I'm not aware if it's already fixed. But providing a minimal reproduction would help a lot debugging the issue.
Want results from more Discord servers?
Add your server