Skip to content

Fix hydration error in 0.7 - #67

Merged
carloskiki merged 2 commits into
carloskiki:mainfrom
hanyuone:main
Jan 4, 2026
Merged

Fix hydration error in 0.7#67
carloskiki merged 2 commits into
carloskiki:mainfrom
hanyuone:main

Conversation

@hanyuone

@hanyuone hanyuone commented Jan 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #64.

This PR uses the snippet provided by @paul-hansen in that issue, which wraps the raw elements generated in icon.data into a <g>. This fixes a hydration regression introduced in 0.7, since Leptos hydration expects only one element in InertElement.

@carloskiki Should I update Cargo.lock in the apps in examples?

@carloskiki

Copy link
Copy Markdown
Owner

Yes, please update the lockfiles of the examples.

@hanyuone

hanyuone commented Jan 4, 2026

Copy link
Copy Markdown
Contributor Author

@carloskiki Done, please review :)

@carloskiki

Copy link
Copy Markdown
Owner

Looks good, thank you!

I will publish a new version shortly.

@carloskiki
carloskiki merged commit 8590518 into carloskiki:main Jan 4, 2026
11 of 13 checks passed
@carloskiki

Copy link
Copy Markdown
Owner

This change in available with leptos = "0.7.1".

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.

Hydration errors with v0.7

2 participants