Skip to content

Commit 6aa714e

Browse files
committed
swap argument order - results in nicer-looking code in many cases
1 parent f82a59b commit 6aa714e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function SvelteBoundary(node, context) {
7575

7676
const props_expression = b.object(props.length === 0 ? [] : props[0]);
7777
const boundary = b.stmt(
78-
b.call('$.boundary', context.state.node, b.arrow([b.id('$$anchor')], block), props_expression)
78+
b.call('$.boundary', context.state.node, props_expression, b.arrow([b.id('$$anchor')], block))
7979
);
8080

8181
context.state.template.push('<!>');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function with_boundary(boundary, fn) {
5252
* }} props
5353
* @returns {void}
5454
*/
55-
export function boundary(node, boundary_fn, props) {
55+
export function boundary(node, props, boundary_fn) {
5656
var anchor = node;
5757

5858
/** @type {Effect | null} */

0 commit comments

Comments
 (0)