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

@ -99,6 +99,8 @@ let selected = $derived(items[index]);
If you use destructuring with a `$derived` declaration, the resulting variables will all be reactive — this...
```js
function stuff() { return { a: 1, b: 2, c: 3 } }
// ---cut---
let { a, b, c } = $derived(stuff());
```

Loading…
Cancel
Save