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

fix(preact): Fixes passing children to server-rendered components causing an error #10200

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

Princesseuh
Copy link
Member

@Princesseuh Princesseuh commented Feb 22, 2024

Changes

preact-render-to-string's last version has a regression, and it now returns an array of string instead of a string in some situations.

Fix #10191

Testing

We actually have a test for this, but it didn't catch it since we were not using the latest version of the library, oops.

Docs

N/A

Copy link

changeset-bot bot commented Feb 22, 2024

🦋 Changeset detected

Latest commit: 5b21ed8

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: preact Related to Preact (scope) pkg: integration Related to any renderer integration (scope) labels Feb 22, 2024
@github-actions github-actions bot added pkg: example Related to an example package (scope) pkg: astro Related to the core `astro` package (scope) labels Feb 22, 2024
@github-actions github-actions bot removed pkg: example Related to an example package (scope) pkg: astro Related to the core `astro` package (scope) labels Feb 22, 2024
@matthewp matthewp merged commit c692d0c into main Feb 22, 2024
13 checks passed
@matthewp matthewp deleted the fix/preact-slots branch February 22, 2024 19:21
@astrobot-houston astrobot-houston mentioned this pull request Feb 22, 2024
log101 pushed a commit to log101/astro that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope) pkg: preact Related to Preact (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preact children props breaks rendering
2 participants