Dark mode toggle resets after navigating between spaces

Aisha Khan Aisha Khan hace 3 semanas

When I enable dark mode and then click into a different space, the page loads in light mode for a split second before switching back. On slower connections it stays light.

Looks like the preference isn't applied before first paint.

2

Thanks for writing this up. Bookmarking it — the kind of thing I will want to reference again in a month.

We ran into the same situation last quarter. What worked for us was starting small and only adding complexity when a real need showed up.

We ran into the same situation last quarter. What worked for us was starting small and only adding complexity when a real need showed up.

This is the answer I wish I had found six months ago. Would have saved me a weekend of trial and error.

This deserves more votes. It is a small change with an outsized impact on day-to-day use.