Skip to content

Commit 0ace76d

Browse files
docs: clarify $inspect.trace docs (#15858)
* docs: clarify `$inspect.trace` docs * Update 07-$inspect.md * Update documentation/docs/02-runes/07-$inspect.md --------- Co-authored-by: Rich Harris <[email protected]>
1 parent c051a6e commit 0ace76d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

documentation/docs/02-runes/07-$inspect.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ This rune, added in 5.14, causes the surrounding function to be _traced_ in deve
5252
import { doSomeWork } from './elsewhere';
5353
5454
$effect(() => {
55+
+++// $inspect.trace must be the first statement of a function body+++
5556
+++$inspect.trace();+++
5657
doSomeWork();
5758
});

0 commit comments

Comments
 (0)