Skip to content

Commit

Permalink
docs(solid-query): update doc correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli committed Jul 20, 2024
1 parent 0edbc49 commit 0cf3e4d
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 0cf3e4d

Please sign in to comment.