infonomic / remix.infonomic.io

A Remix demo app with CSS, Tailwind, Radix UI and other headless UI components.
https://remix.infonomic.io
MIT License
46 stars 5 forks source link

Update theme support with new head render #1

Closed kiliman closed 1 year ago

kiliman commented 1 year ago

I've fixed the theme issue. Here's a video showing it working.

I'm not sure what that React error was at the end there. Something to do with motion after I refreshed on the light theme.

Anyway, as you can see, you can access loader data from entry.server. You can also render anything (including wrapping the <ThemeProvider>) as needed.

Hope this helps.

58bits commented 1 year ago

This is brilliant Michael - thanks so much for the PR!