question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support server side blazor without server side rendering

See original GitHub issue

BlazorStyled 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:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alexandrereyescommented, Aug 20, 2019

repo.zip @chanan here is the project witch reproduces the problem

0reactions
chanancommented, Sep 3, 2019

I think this works now, let me know if you guys run into other issues

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found