Skip to content

Commit

Permalink
Fix Error Handling Example in Conditional Rendering Documentation (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussain-t authored Jun 11, 2024
1 parent f89de89 commit 4184dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/concepts/control-flow/conditional-rendering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { Show } from "solid-js"

<Show when={data.loading}>
<div>Loading...</div>
<Show when={!data.error}>
<Show when={data.error}>
<div>Error: {data.error}</div>
</Show>
</Show>
Expand Down Expand Up @@ -85,4 +85,4 @@ import { Switch, Match } from "solid-js"
<p>Outcome 2</p>
</Match>
</Switch>
```
```

0 comments on commit 4184dd1

Please sign in to comment.