mirror of https://github.com/sveltejs/svelte
fix: do not warn for `binding_property_non_reactive` if binding is a store in an each (#15318)
Fixes #15315pull/15319/head
parent
87d7cc7d89
commit
dde8603872
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: do not warn for `binding_property_non_reactive` if binding is a store in an each
|
@ -0,0 +1,10 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
compileOptions: {
|
||||
dev: true
|
||||
},
|
||||
async test({ assert, warnings }) {
|
||||
assert.deepEqual(warnings, []);
|
||||
}
|
||||
});
|
@ -0,0 +1,10 @@
|
||||
<svelte:options runes />
|
||||
<script>
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
const array = writable([{ name: "" }]);
|
||||
</script>
|
||||
|
||||
{#each $array as item}
|
||||
<div><input bind:value={item.name} /></div>
|
||||
{/each}
|
Loading…
Reference in new issue