#The basic concept is actually within the
1 messages · Page 1 of 1 (latest)
agreed, tried to wrap my head around how next-themes does it but didn't quite figure it yet.
Honestly i'm not really looking to shave off microseconds, I just want to gain a deeper knowledge of how next.js works under the hood and how to work around it 🙂
sometimes I put myself in these shitty situations just so I can gain deeper understanding.
Next themes could be agnostic of next, idk why it's considered just for next
There's even an issue for that https://github.com/pacocoursey/next-themes/issues/159
yeah I noticed, tried to understand what the maintainer does differently in his index file but I believe I either didn't try hard enough or I'm a fucking dumb lol
It's just very optimized niche code
did you manage to gain an understanding of how you could obtain the same effect using _app, _document and some script injection with dangerouslySetInnetHTML?
because I figured that's the way to go, but I'm a dummy hehe
I'm not interested enough