Skip to content

Commit df027d0

Browse files
committed
shuffle
1 parent 30cd46d commit df027d0

File tree

1 file changed

+12
-18
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+12
-18
lines changed

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ import { loop } from '../../loop.js';
4545
* }} BoundaryProps
4646
*/
4747

48+
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
49+
50+
/**
51+
* @param {TemplateNode} node
52+
* @param {BoundaryProps} props
53+
* @param {((anchor: Node) => void)} children
54+
* @returns {void}
55+
*/
56+
export function boundary(node, props, children) {
57+
new Boundary(node, props, children);
58+
}
59+
4860
export class Boundary {
4961
suspended = false;
5062
inert = false;
@@ -385,24 +397,6 @@ export class Boundary {
385397
}
386398
}
387399

388-
var flags = EFFECT_TRANSPARENT | EFFECT_PRESERVED | BOUNDARY_EFFECT;
389-
390-
/**
391-
* @param {TemplateNode} node
392-
* @param {{
393-
* onerror?: (error: unknown, reset: () => void) => void;
394-
* failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void;
395-
* pending?: (anchor: Node) => void;
396-
* showPendingAfter?: number;
397-
* showPendingFor?: number;
398-
* }} props
399-
* @param {((anchor: Node) => void)} children
400-
* @returns {void}
401-
*/
402-
export function boundary(node, props, children) {
403-
new Boundary(node, props, children);
404-
}
405-
406400
/**
407401
*
408402
* @param {Effect} effect

0 commit comments

Comments
 (0)