Support server side blazor without server side rendering
See original GitHub issueBlazorStyled is not working when server side rendering is disabled.
My application is a server side blazor but doesn’t have a cshtml file, instead, it has an index.html:
app.UseEndpoints(endpoints =>
{
endpoints.MapBlazorHub().AddComponent(typeof(App), selector: "app");
endpoints.MapFallbackToFile("index.html");
});
So…I put <style id="styled"></style>
inside index.html but looks like blazorStyle isn’t populating any css inside this tag
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
ASP.NET Core Blazor hosting models
Razor components can run server-side in ASP.NET Core (Blazor Server) versus client-side in the browser on a WebAssembly-based .
Read more >Exploring Blazor Changes in .NET 8 - Server Side ...
You can go for Blazor Server, where an open socket connection is required for each user 'session', and all UI logic executes on...
Read more >Server-Side Blazor Component Rendering ('Blazor United') ...
NET 8 Preview 3 introduces server-side rendering support for Blazor components, part of a project that Microsoft has dubbed "Blazor United.".
Read more >Big Changes Coming for Blazor in .NET 8
Server -side rendering is a no-brainer for Blazor. Much better idea than the current version of server, which I wouldn't touch with a...
Read more >Is Blazer server SSR and SPA?
Blazor Server is Server Side Rendering . All the work goes on the server. It builds an html page which it passes to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
repo.zip @chanan here is the project witch reproduces the problem
I think this works now, let me know if you guys run into other issues