Skip to content

Commit fcac011

Browse files
authored
docs(solid-query): fix quick-start example (#7770)
1 parent f2fd318 commit fcac011

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/framework/solid/quick-start.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@ function Example() {
197197
return (
198198
<div>
199199
<Switch>
200-
<Match when={query.isPending}>
200+
<Match when={todosQuery.isPending}>
201201
<p>Loading...</p>
202202
</Match>
203-
<Match when={query.isError}>
204-
<p>Error: {query.error.message}</p>
203+
<Match when={todosQuery.isError}>
204+
<p>Error: {todosQuery.error.message}</p>
205205
</Match>
206-
<Match when={query.isSuccess}>
207-
<For each={query.data}>
206+
<Match when={todosQuery.isSuccess}>
207+
<For each={todosQuery.data}>
208208
{(todo) => (
209209
<button onClick={() => setTodo(todo.id)}>{todo.title}</button>
210210
)}

0 commit comments

Comments
 (0)