We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a2e0ad commit a9b8377Copy full SHA for a9b8377
src/routes/reference/components/show.mdx
@@ -74,9 +74,9 @@ function RenderFunctionExample() {
74
<div>
75
<button onClick={() => setCount((c) => c + 1)}>Increment</button>
76
{/* This does not update because the count signal is not being tracked. */}
77
- <Show when={count()}>{() => count()}</Show>
+ <Show when={count()}>{(c) => count()}</Show>
78
{/* This will update because the outer JSX element creates a tracking scope. */}
79
- <Show when={count()}>{() => <>{count()}</>}</Show>
+ <Show when={count()}>{(c) => <>{count()}</>}</Show>
80
</div>
81
);
82
}
0 commit comments