Skip to content
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

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

Closed
BryanWilhite opened this issue Jun 14, 2022 · 2 comments · Fixed by #277
Closed

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

BryanWilhite opened this issue Jun 14, 2022 · 2 comments · Fixed by #277
Assignees
Labels
bug Something isn't working

Comments

@BryanWilhite
Copy link

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
Copy link
Author

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!

@Tarmil
Copy link
Member

Tarmil commented Jun 15, 2022

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

@Tarmil Tarmil added the bug Something isn't working label Jun 15, 2022
@Tarmil Tarmil self-assigned this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants