diff --git a/docs/ListTutorial.md b/docs/ListTutorial.md index a2da1a294d8..9a3d2bfff77 100644 --- a/docs/ListTutorial.md +++ b/docs/ListTutorial.md @@ -125,10 +125,11 @@ const BookList = () => { const [filter, setFilter] = useState(''); const [page, setPage] = useState(1); const perPage = 10; ++ const sort = { field: 'id', order: 'ASC' }; const { data, total, isLoading } = useGetList('books', { filter: { q: filter }, pagination: { page, perPage }, - sort: { field: 'id', order: 'ASC' } ++ sort }); if (isLoading) { return