Skip to content

Commit b29d29f

Browse files
author
devgioele
committed
update readme
1 parent bdaea99 commit b29d29f

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

readme.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const parseSearch = (query: Query) => {
5858

5959
export function UserList() {
6060
const { page, size, query, setQuery, setPage, resetQuery } =
61-
useQueryAndPagination({ search: '' }, parseSearch)
61+
useQueryAndPagination(parseSearch, { search: '' })
6262

6363
return (
6464
<div>
@@ -116,10 +116,14 @@ const users = [
116116

117117
export function UserList() {
118118
const { page, size, query, setQuery, setPage, resetQuery } =
119-
useQueryAndPagination({ name: '', age: 0 }, userSchema, {
120-
page: 0,
121-
size: 4,
122-
})
119+
useQueryAndPagination:
120+
userSchema,
121+
{ name: '', age: 0 },
122+
{
123+
page: 0,
124+
size: 4,
125+
},
126+
)
123127

124128
return (
125129
<div>

0 commit comments

Comments
 (0)