We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2fd318 commit fcac011Copy full SHA for fcac011
docs/framework/solid/quick-start.md
@@ -197,14 +197,14 @@ function Example() {
197
return (
198
<div>
199
<Switch>
200
- <Match when={query.isPending}>
+ <Match when={todosQuery.isPending}>
201
<p>Loading...</p>
202
</Match>
203
- <Match when={query.isError}>
204
- <p>Error: {query.error.message}</p>
+ <Match when={todosQuery.isError}>
+ <p>Error: {todosQuery.error.message}</p>
205
206
- <Match when={query.isSuccess}>
207
- <For each={query.data}>
+ <Match when={todosQuery.isSuccess}>
+ <For each={todosQuery.data}>
208
{(todo) => (
209
<button onClick={() => setTodo(todo.id)}>{todo.title}</button>
210
)}
0 commit comments