-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation in SSR (Next.js) #5
Comments
It should be in <StyleSheetManager stylisPlugins={language === "ar" ? [stylisRTLPlugin] : []}>
{/* CssBaseline kickstart an elegant, consistent, and simple baseline to build upon. */}
<CssBaseline />
<Page {...pageProps} />
</StyleSheetManager> |
Thanks, @Migggz for the suggestion.
Conditional to do re-rendering when I hit change language. It wasn't working otherwise. |
|
Got it. Thanks @oliviertassinari Can anyone help me why it doesn't work when doing like this:
I have to do like this:
But this approach has its own problems. I have made an example here to look at. Check |
@sanishkr Have you found a solution? |
Nope. It's a really cool plugin but authors or community doesn't have much support yet. |
everything is ok in development mode,
here is _app.js file:
|
Looks fine. A repo would be useful. Or check this sandbox |
any news on this bug ?
the css doesn't flip |
Where do I implement in SSR (Next.js)? Should I keep
StyleSheetManager
in_app.js
or in_document.js
? I think it should be in _document.js. But I tried wrapping my in StyleSheetManager, it doesn't work.Here is a sample
_document.js
without this plugin.Here is what I tried
The text was updated successfully, but these errors were encountered: