Skip to content

Commit 7203366

Browse files
committed
fix: super minor ts query example fix
1 parent 3181aee commit 7203366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/react/add-on/tanstack-query/assets/src/routes/demo.tanstack-query.tsx.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function TanStackQueryDemo() {
1313
queryFn: () =>
1414
fetch('https://swapi.dev/api/people')
1515
.then((res) => res.json())
16-
.then((data) => data.results as { name: string }[]),
16+
.then((d) => d.results as { name: string }[]),
1717
initialData: [],
1818
})
1919

0 commit comments

Comments
 (0)