Skip to content

Commit dea3596

Browse files
authored
Add fragment to make example reactive (#976)
1 parent 9116e2d commit dea3596

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/routes/configuration/typescript.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ return <div>{user()?.name}</div>;
584584

585585
return (
586586
<div>
587-
<Show when={user()}>{(nonNullishUser) => nonNullishUser().name}</Show>
587+
<Show when={user()}>{(nonNullishUser) => <>
588+
{nonNullishUser().name}
589+
</>}</Show>
588590
</div>
589591
);
590592
```

0 commit comments

Comments
 (0)