mirror of https://github.com/sveltejs/svelte
chore: rename `$derived.call` to `$derived.by` (#10445)
* rename $derived.call to $derived.by * more replacements, plus a compiler error * regenerate types --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/10470/head
parent
9cee83c864
commit
d41d0c26ad
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
breaking: replace `$derived.call` with `$derived.by`
|
@ -1,6 +1,6 @@
|
||||
<script>
|
||||
let count = $state(0);
|
||||
let double = $derived.call(() => count * 2);
|
||||
let double = $derived.by(() => count * 2);
|
||||
</script>
|
||||
|
||||
<button on:click={() => count++}>{double}</button>
|
||||
|
Loading…
Reference in new issue