mirror of https://github.com/sveltejs/svelte
parent
3b15e32a91
commit
bd8f7db754
@ -1,7 +0,0 @@
|
|||||||
import { test } from '../../test';
|
|
||||||
|
|
||||||
export default test({
|
|
||||||
runtime_error:
|
|
||||||
'ERR_SVELTE_TOO_MANY_UPDATES: Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops.',
|
|
||||||
async test({ assert, target }) {}
|
|
||||||
});
|
|
@ -1,11 +0,0 @@
|
|||||||
<script>
|
|
||||||
const v = { value: 1 };
|
|
||||||
let s = $state(v)
|
|
||||||
|
|
||||||
$effect(() => {
|
|
||||||
s = v;
|
|
||||||
s;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{JSON.stringify(s)}
|
|
Loading…
Reference in new issue