Skip to content

Commit 0a68356

Browse files
committed
add a comment
1 parent cf1e72f commit 0a68356

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/svelte/src/internal/client/dom/hydration.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export function set_hydrate_nodes(nodes) {
2626
}
2727

2828
/**
29-
* Returns all nodes between the first `<![>...<!]>` comment tag pair encountered.
29+
* This function is only called when `hydrating` is true. If passed a `<![>` opening
30+
* hydration marker, it finds the corresponding closing marker and sets `hydrate_nodes`
31+
* to everything between the markers, before returning the closing marker.
3032
* @param {Node} node
3133
* @returns {Node}
3234
*/

0 commit comments

Comments
 (0)