mirror of https://github.com/sveltejs/svelte
fix: don't throw with nullish actions (#13559)
Co-authored-by: Oscar Dominguez <dominguez.celada@gmail.com>pull/14529/head
parent
a5de086f95
commit
39275684e5
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: don't throw with nullish actions
|
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: '<div></div> <div></div>'
|
||||
});
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let { action_prop } = $props();
|
||||
let action = $state();
|
||||
</script>
|
||||
|
||||
<div use:action></div>
|
||||
<div use:action_prop></div>
|
Loading…
Reference in new issue