Skip to content

Commit c1be9bf

Browse files
authored
docs: Fix example (TanStack#2254)
1 parent 0edc116 commit c1be9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/guides/paginated-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Consider the following example where we would ideally want to increment a pageIn
2727
function Todos() {
2828
const [page, setPage] = React.useState(0)
2929

30-
const fetchProjects = (page = 0) => fetch('/api/projects?page=' + page)
30+
const fetchProjects = (page = 0) => fetch('/api/projects?page=' + page).then((res) => res.json())
3131

3232
const {
3333
isLoading,

0 commit comments

Comments
 (0)