Skip to content

Commit 46b2479

Browse files
committed
minor wording tweak
1 parent 06452da commit 46b2479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/07-misc/07-v5-migration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ A `$:` statement could also be used to create side effects. In Svelte 5, this is
5151
</script>
5252
```
5353

54-
Note that [when `$effect` runs is different than `$:`]($effect#Understanding-dependencies).
54+
Note that [when `$effect` runs is different]($effect#Understanding-dependencies) than when `$:` runs.
5555

5656
> [!DETAILS] Why we did this
5757
> `$:` was a great shorthand and easy to get started with: you could slap a `$:` in front of most code and it would somehow work. This intuitiveness was also its drawback the more complicated your code became, because it wasn't as easy to reason about. Was the intent of the code to create a derivation, or a side effect? With `$derived` and `$effect`, you have a bit more up-front decision making to do (spoiler alert: 90% of the time you want `$derived`), but future-you and other developers on your team will have an easier time.

0 commit comments

Comments
 (0)