Skip to content

Add support for the disablePagination hook in feathers-hooks-common #590

Open
@joshuaja

Description

@joshuaja

Steps to reproduce

feathers-hooks-common has a disablePagination hook that allows us to pass in $limit: -1 to disable pagination for a Feathers service.

When passing $limit: -1 to useFind params in feathers-vuex, we have to use both params and fetchParams as a workaround since feathers-vuex doesn't see $limit: -1 as turning off pagination.

Expected behavior

If $limit: -1 is passed to useFind params I would expect for it to add paginate: false to the params and $limit: -1 to the fetchParams in the background.

Actual behavior

feathers-vuex doesn't turn off pagination if $limit: -1 is passed to params.

System configuration

Module versions (especially the part that's not working):

  • "feathers-vuex": "^3.15.0"
  • "vuex": "^3.6.2"

NodeJS version:

  • "node": "14.4.0"
  • "npm": ">= 6.14.5"

Operating System:

  • Linux/Docker

Browser Version:

  • Latest Chrome

Module Loader:

  • Vue CLI

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions