Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: SupportdangerouslySetInnerHTML on Fragments#418

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
rschristian wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromfeat/fragment-inner-html

Conversation

@rschristian
Copy link
Member

Might/probably will need work in core as well (though arguably this is more useful on the server? not sure), definitely could do with some more tests yet.

bjrn and nwalters512 reacted with heart emoji
@nwalters512
Copy link
Contributor

Might/probably will need work in core as well (though arguably this is more useful on the server? not sure)

For a project that's using SSR + hydration, I'd love for this to work the same during both static rendering and on the client!

@rschristian
Copy link
MemberAuthor

For a project that's using SSR + hydration, I'd love for this to work the same during both static rendering and on the client!

It should "hydrate" just fine as-is, by virtue of not actually having anything to hydrate; there's no hydrating non-Preact components and we don't wipe out the DOM on mismatches. Hydrating<Fragment dangerouslySetInnerHTML={{ __html: '<h1>Hello World!</h1>' }}> is basically a no-op.

nwalters512 reacted with thumbs up emojinwalters512 and bjrn reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@rschristian@nwalters512

[8]ページ先頭

©2009-2025 Movatter.jp