Closed mooski closed 4 years ago
I think this is a duplicate of #3 - apologies.
I still think it would be worth mentioning this limitation in the docs though - this is unfortunately a showstopper for me, and I'm sure it would be for some other people too.
Hi,
Glad you like BlazorStyled!
All Blazor application require JavaScript to be running, so this assumed. Although on the future I would love to have the option to pre render the “base” styles, but that is still far away
There's no mention that this isn't supported, so I assume this should work, but I could be wrong.
When using Blazor server, styles don't render on the server itself, but rather they get rendered on the client after the framework has loaded.
This is problematic if you're using
ServerPrerendered
render mode because the app initially appears unstyled until the framework loads after a short while.Reproduction steps:
@using BlazorStyled
to_Imports.razor
.services.AddBlazorStyled();
toStartup.ConfigureServices()
.Add the following code to
Pages/Index.razor
:Should this scenario work? If not it might be worth mentioning in the docs?
Other than this, BlazorStyled looks like an awesome tool!