Skip to content

Commit

Permalink
docs(solid-query): fix quick-start example (#7770)
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli authored Jul 27, 2024
1 parent f2fd318 commit fcac011
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/framework/solid/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@ function Example() {
return (
<div>
<Switch>
<Match when={query.isPending}>
<Match when={todosQuery.isPending}>
<p>Loading...</p>
</Match>
<Match when={query.isError}>
<p>Error: {query.error.message}</p>
<Match when={todosQuery.isError}>
<p>Error: {todosQuery.error.message}</p>
</Match>
<Match when={query.isSuccess}>
<For each={query.data}>
<Match when={todosQuery.isSuccess}>
<For each={todosQuery.data}>
{(todo) => (
<button onClick={() => setTodo(todo.id)}>{todo.title}</button>
)}
Expand Down

0 comments on commit fcac011

Please sign in to comment.