@rest-hooks/rest@7.4.0
·
1256 commits
to master
since this release
Minor Changes
-
c8c5575: Add 'paginationField' parameter to RestEndpoint and createResource
This adds a 'getPage' member; similar to getList.push/unshift but for pagination.
const TodoResource = createResource({ path: '/todos/:id', schema: Todo, paginationField: 'page', }).getList.getPage({ page: '2' });
Patch Changes
-
c8c5575: Fix case where sometimes paginating would not update a collection
This was due to the comparison not using string serialization (canonical form for collection comparisons)
-
c8c5575: Ignore 'undefined' parameters in collection matching
-
Updated dependencies [c8c5575]
-
Updated dependencies [c8c5575]
-
Updated dependencies [c8c5575]
- @data-client/rest@0.7.0