ui-kit icon indicating copy to clipboard operation
ui-kit copied to clipboard

Make `<ThemeProvider>` compatible with SSR

Open emmenko opened this issue 2 years ago • 0 comments

The <ThemeProvider> uses useLayoutEffect to inject the css variables to the <html> element.

While this works client-side, running effects on the server does not really work.

We should make the component compatible with SSR and/or find a way to configure theming for SSR.

emmenko avatar Nov 10 '22 13:11 emmenko