fix: mark subtree of svelte boundary as dynamic (#17468)

pull/17485/head
Paolo Ricciuti 7 months ago committed by GitHub
parent 17c22969d8
commit a903e9408b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: mark subtree of svelte boundary as dynamic

@ -1,6 +1,7 @@
/** @import { AST } from '#compiler' */
/** @import { Context } from '../types' */
import * as e from '../../../errors.js';
import { mark_subtree_dynamic } from './shared/fragment.js';
const valid = ['onerror', 'failed', 'pending'];
@ -23,5 +24,7 @@ export function SvelteBoundary(node, context) {
}
}
mark_subtree_dynamic(context.path);
context.next();
}

@ -0,0 +1,5 @@
import { test } from '../../test';
export default test({
html: '<div><div>test</div></div>'
});

@ -0,0 +1,5 @@
<div>
<svelte:boundary>
<div>test</div>
</svelte:boundary>
</div>
Loading…
Cancel
Save