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

Use a manual renderer to fix prerendering #277

Merged
merged 7 commits into from Nov 7, 2022
Merged

Use a manual renderer to fix prerendering #277

merged 7 commits into from Nov 7, 2022

Conversation

Tarmil
Copy link
Member

@Tarmil Tarmil commented Nov 6, 2022

When rendering the static part of a page defined with Bolero.Html, prerendering does not work (see #261). It seems that using Blazor's renderer in a nested way (first for the page component, and then inside for the rootComp component) is not supported: the nested rendering gets queued as a task, and executed too late.

This PR fixes this issue by using a simple custom renderer for the page instead of invoking Blazor's RenderComponentAsync.

@Tarmil Tarmil merged commit 0d3b3fb into master Nov 7, 2022
@Tarmil Tarmil deleted the fix/prerender branch November 7, 2022 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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