@@ -50,7 +50,7 @@ export function set_current_each_item(item) {
50
50
* @param {number } flags
51
51
* @param {null | ((item: V) => string) } get_key
52
52
* @param {(anchor: null, item: V, index: import('#client').MaybeSource<number>) => void } render_fn
53
- * @param {null | ((anchor: Node) => void) } fallback_fn
53
+ * @param {null | ((anchor: Node | null ) => void) } fallback_fn
54
54
* @param {typeof reconcile_indexed_array | reconcile_tracked_array } reconcile_fn
55
55
* @returns {void }
56
56
*/
@@ -158,7 +158,7 @@ function each(anchor, get_collection, flags, get_key, render_fn, fallback_fn, re
158
158
resume_effect ( fallback ) ;
159
159
} else {
160
160
fallback = render_effect ( ( ) => {
161
- var dom = fallback_fn ( anchor ) ;
161
+ var dom = fallback_fn ( hydrating ? null : anchor ) ;
162
162
163
163
return ( ) => {
164
164
if ( dom !== undefined ) {
@@ -199,7 +199,7 @@ function each(anchor, get_collection, flags, get_key, render_fn, fallback_fn, re
199
199
* @param {number } flags
200
200
* @param {null | ((item: V) => string) } get_key
201
201
* @param {(anchor: null, item: V, index: import('#client').MaybeSource<number>) => void } render_fn
202
- * @param {null | ((anchor: Node) => void) } fallback_fn
202
+ * @param {null | ((anchor: Node | null ) => void) } fallback_fn
203
203
* @returns {void }
204
204
*/
205
205
export function each_keyed ( anchor , get_collection , flags , get_key , render_fn , fallback_fn ) {
@@ -212,7 +212,7 @@ export function each_keyed(anchor, get_collection, flags, get_key, render_fn, fa
212
212
* @param {() => V[] } get_collection
213
213
* @param {number } flags
214
214
* @param {(anchor: null, item: V, index: import('#client').MaybeSource<number>) => void } render_fn
215
- * @param {null | ((anchor: Node) => void) } fallback_fn
215
+ * @param {null | ((anchor: Node | null ) => void) } fallback_fn
216
216
* @returns {void }
217
217
*/
218
218
export function each_indexed ( anchor , get_collection , flags , render_fn , fallback_fn ) {
0 commit comments