docs: clarify `$inspect.trace` docs

pull/15858/head
Ben McCann 1 year ago committed by GitHub
parent c051a6eb1e
commit 8db93c8c2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -52,7 +52,8 @@ This rune, added in 5.14, causes the surrounding function to be _traced_ in deve
import { doSomeWork } from './elsewhere'; import { doSomeWork } from './elsewhere';
$effect(() => { $effect(() => {
+++$inspect.trace();+++ +++ // $inspect.trace must be the first statement of a function body
$inspect.trace();+++
doSomeWork(); doSomeWork();
}); });
</script> </script>

Loading…
Cancel
Save