pull/16409/head
Rich Harris 2 months ago
parent 5edbc9bf4a
commit 336b878623

@ -79,10 +79,10 @@ $effect(() => {
The same applies to array mutations, since these both read and write to the array: The same applies to array mutations, since these both read and write to the array:
```js ```js
let array = $state([]); let array = $state(['hello']);
$effect(() => { $effect(() => {
array.push('hello'); array.push('goodbye');
}); });
``` ```

Loading…
Cancel
Save