stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

Dynamic CSS theme and react-snap #432

Closed jvidalv closed 2 years ago

jvidalv commented 4 years ago

Hi, im trying to use react-snap, as it is a beautiful tool to make simple things like whatsapp/facebook share working with the right tags.

The problem I face is related to my own app.

It has a theme switcher (dark/light, default dark) as react-snap caches all on first load, when you switch theme (I catch it, so if he comes back is still light theme) and reloads the page it loads everything but some styles as dark theme and it looks weird.

Is there any advice or solution or guidance to this problem im facing?