File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
packages/svelte/src/internal/client Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,11 @@ export function child(node, is_text) {
130130
131131/**
132132 * Don't mark this as side-effect-free, hydration needs to walk all nodes
133- * @param {DocumentFragment | TemplateNode[] } fragment
134- * @param {boolean } is_text
133+ * @param {DocumentFragment | TemplateNode | TemplateNode [] } fragment
134+ * @param {boolean } [ is_text]
135135 * @returns {Node | null }
136136 */
137- export function first_child ( fragment , is_text ) {
137+ export function first_child ( fragment , is_text = false ) {
138138 if ( ! hydrating ) {
139139 // when not hydrating, `fragment` is a `DocumentFragment` (the result of calling `open_frag`)
140140 var first = /** @type {DocumentFragment } */ ( get_first_child ( /** @type {Node } */ ( fragment ) ) ) ;
Original file line number Diff line number Diff line change @@ -316,6 +316,9 @@ export function text(value = '') {
316316 return node ;
317317}
318318
319+ /**
320+ * @returns {TemplateNode | DocumentFragment }
321+ */
319322export function comment ( ) {
320323 // we're not delegating to `template` here for performance reasons
321324 if ( hydrating ) {
Original file line number Diff line number Diff line change @@ -10,12 +10,10 @@ import {
1010 INERT ,
1111 RENDER_EFFECT ,
1212 ROOT_EFFECT ,
13- USER_EFFECT ,
1413 MAYBE_DIRTY
1514} from '#client/constants' ;
1615import { async_mode_flag } from '../../flags/index.js' ;
1716import { deferred , define_property } from '../../shared/utils.js' ;
18- import { get_boundary } from '../dom/blocks/boundary.js' ;
1917import {
2018 active_effect ,
2119 is_dirty ,
@@ -30,7 +28,6 @@ import { DEV } from 'esm-env';
3028import { invoke_error_boundary } from '../error-handling.js' ;
3129import { old_values } from './sources.js' ;
3230import { unlink_effect } from './effects.js' ;
33- import { unset_context } from './async.js' ;
3431
3532/** @type {Set<Batch> } */
3633const batches = new Set ( ) ;
You can’t perform that action at this time.
0 commit comments