Bolero icon indicating copy to clipboard operation
Bolero copied to clipboard

`rootComp` can no longer prerender? [version 0.20.*]

Open BryanWilhite opened this issue 2 years ago • 2 comments

In the 0.18.* era of Bolero, by default, contents of rootComp would prerender:

image

This is not the case for 0.20.*:

image

In Songhay.Dashboard.Server/Startup.fs:

.AddBoleroHost(server = false, prerendered = true, devToggle = true)

Is this just a fact of life with the new CE technology? Are there other ways to control RenderMode apart from using Razor and calling Html.RenderComponentAsync explicitly?

image

BryanWilhite avatar Jun 14 '22 03:06 BryanWilhite

I can change my current layout to respond to what I am experiencing:

image

The dashed lines represent visuals rendered by rootComp. The layout on the left is what I have now. The layout on the right reduces the responsibility of rootComp and places static visuals around rootComp.

Even with this reduced rendering functionality, the prerender feature is still there, making it superior to all popular JavaScript-based SPAs out of the box!

BryanWilhite avatar Jun 15 '22 04:06 BryanWilhite

This definitely looks like a bug, the change is not intentional. I'll look into it.

Tarmil avatar Jun 15 '22 12:06 Tarmil