mirror of https://github.com/sveltejs/svelte
fix: do not treat reassigned synthetic binds as state in runes mode (#14236)
* fix: do not treat reassigned synthetic binds as state in runes mode * fix: avoid calling checks if we are in runes modepull/14260/head
parent
d207666ec3
commit
7bc94b9984
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: do not treat reassigned synthetic binds as state in runes mode
|
@ -0,0 +1,7 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({
|
||||||
|
async test({ logs, assert }) {
|
||||||
|
assert.deepEqual(logs, ['world']);
|
||||||
|
}
|
||||||
|
});
|
@ -0,0 +1,13 @@
|
|||||||
|
<script>
|
||||||
|
import { writable } from 'svelte/store';
|
||||||
|
|
||||||
|
let style = writable('world');
|
||||||
|
|
||||||
|
$effect(() => {
|
||||||
|
console.log($style);
|
||||||
|
});
|
||||||
|
|
||||||
|
function init(){
|
||||||
|
style = writable('svelte');
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
Reference in new issue