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

@ -105,6 +105,8 @@ let { a, b, c } = $derived(stuff());
...is roughly equivalent to this: ...is roughly equivalent to this:
```js ```js
function stuff() { return { a: 1, b: 2, c: 3 } }
// ---cut---
let _stuff = $derived(stuff()); let _stuff = $derived(stuff());
let a = $derived(_stuff.a); let a = $derived(_stuff.a);
let b = $derived(_stuff.b); let b = $derived(_stuff.b);

Loading…
Cancel
Save