Skip to content

Conversation

@hackartists
Copy link
Contributor

Move suspense handling to the correct position in the SSR renderer to ensure proper rendering when streaming is disabled.

Issues

  • Meta tag does not be rendered after suspense.
  • It can improve SEO by suspense Meta

Before

  • Server returned HTML with Metas before suspense.

Contribution

  • Server returns HTML with Metas after resolving suspense

Move suspense handling to the correct position in the SSR renderer to ensure proper rendering when streaming is disabled.
@hackartists hackartists requested a review from a team as a code owner March 5, 2025 05:04
@ealmloff ealmloff changed the title fix(fullstack): correct suspense handling in SSR renderer fix(fullstack): Resolve suspense before the head chunk when streaming is disabled Mar 5, 2025
Copy link
Member

@ealmloff ealmloff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks right. We should wait for suspense to resolve when streaming is disabled before rendering the head chunk

@ealmloff ealmloff added bug Something isn't working fullstack related to the fullstack crate labels Mar 5, 2025
@jkelleyrtp jkelleyrtp merged commit 64106ba into DioxusLabs:main Mar 5, 2025
17 checks passed
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jun 2, 2025
…#3829)

Move suspense handling to the correct position in the SSR renderer to ensure proper rendering when streaming is disabled.
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jul 23, 2025
…#3829)

Move suspense handling to the correct position in the SSR renderer to ensure proper rendering when streaming is disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fullstack related to the fullstack crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants