Skip to content

Commit 5949fc8

Browse files
authored
Change 'todos' ID to 'projects'
We are fetching projects in this example, so calling it 'todos' didn't make sense to me.
1 parent 98b8487 commit 5949fc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/pagination/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default () => {
77
const [page, setPage] = React.useState(0)
88

99
const { status, resolvedData, data, error, isFetching } = usePaginatedQuery(
10-
['todos', page],
10+
['projects', page],
1111
(key, page = 0) => fetch('/api/projects?page=' + page)
1212
)
1313

0 commit comments

Comments
 (0)