Skip to content

Commit 64e33e8

Browse files
committed
mention const
1 parent ea6b1e3 commit 64e33e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/02-runes/03-$derived.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To exempt a piece of state from being treated as a dependency, use [`untrack`](s
5454

5555
## Overriding derived values
5656

57-
Derived expressions are recalculated when their dependencies change, but you can temporarily override their values by reassigning them. This can be useful for things like _optimistic UI_, where a value is derived from the 'source of truth' (such as data from your server) but you'd like to show immediate feedback to the user:
57+
Derived expressions are recalculated when their dependencies change, but you can temporarily override their values by reassigning them (unless they are declared with `const`). This can be useful for things like _optimistic UI_, where a value is derived from the 'source of truth' (such as data from your server) but you'd like to show immediate feedback to the user:
5858

5959
```svelte
6060
<script>

0 commit comments

Comments
 (0)