mirror of https://github.com/sveltejs/svelte
fix: avoid throwing `store_invalid_subscription_module` for runes (#12848)
* fix: avoid throwing `store_invalid_subscription_module` for runes Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com> * move test to the validator suite, which is faster --------- Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com> Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/12846/head
parent
19beb7754e
commit
90334c812c
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: avoid throwing `store_invalid_subscription_module` for runes
|
@ -0,0 +1,3 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({});
|
@ -0,0 +1,14 @@
|
||||
const state = $state(0);
|
||||
|
||||
const derived = $derived(state + 2);
|
||||
|
||||
let effect = {};
|
||||
let inspect = {};
|
||||
|
||||
$effect.root(() => {
|
||||
$inspect(state);
|
||||
|
||||
$effect(() => {
|
||||
console.log(state);
|
||||
});
|
||||
});
|
Loading…
Reference in new issue