Skip to content

Commit

Permalink
fix: better handling of empty text node hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Feb 19, 2024
1 parent fa3d118 commit 3a77034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export function space(anchor) {
// text node to hydrate (or an anchor comment is falsely detected instead)
// — we must therefore create one
if (hydrating && anchor.nodeType !== 3) {
const node = empty()
const node = empty();
anchor.before(node);
return node;
}
Expand Down

0 comments on commit 3a77034

Please sign in to comment.