Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
log-rune
Dominic Gannaway 10 months ago committed by GitHub
parent 93a2607800
commit 6b2d267127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -267,9 +267,9 @@ export default {
## `$log` ## `$log`
The `$log` rune is roughly equivalent to `console.log`, with the exception that when anything passed to the The `$log` rune is roughly equivalent to `console.log`, with the exception that it will re-run whenever the
rune changes, the latest values will be logged out. `$log` tracks reactive state deeply, meaning that mutating arguments change. `$log` tracks reactive state deeply, meaning that updating something inside an object
something from with an object or array using fine-grain reactivity will be tracked. or array using [fine-grained reactivity](/docs/fine-grained-reactivity) will update the logs.
```svelte ```svelte
<script> <script>

Loading…
Cancel
Save