Skip to content

Commit

Permalink
Update documentation/docs/02-runes/03-$derived.md
Browse files Browse the repository at this point in the history
Co-authored-by: Yash Pandit <[email protected]>
  • Loading branch information
dummdidumm and yashpandit authored Jan 7, 2025
1 parent cc4af6c commit 0321db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/02-runes/03-$derived.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Derived state is declared with the `$derived` rune:

The expression inside `$derived(...)` should be free of side-effects. Svelte will disallow state changes (e.g. `count++`) inside derived expressions.

Subsequents results of a `$derived` expression are compared against its previous value. If they are referentially the same, the `$derived` won't propagate an update to its dependencies.
Subsequent results of a `$derived` expression are compared against its previous value. If they are referentially the same, the `$derived` won't propagate an update to its dependencies.

```svelte
<script>
Expand Down

0 comments on commit 0321db1

Please sign in to comment.