Skip to content

@rest-hooks/rest@7.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Aug 21:53
· 1256 commits to master since this release
30e8b3a

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