-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the disablePagination
hook in feathers-hooks-common
#590
Comments
That's something I have to do quite often. FeathersVuex takes As I use it quite often, I would like to add this feature. |
To me, it seems that we just need to handle the -1 value specifically in the find getter. |
We also discussed that approach. The problem is the following. |
The filter-query behavior doesn't prevent us to do what I suggested. The filter-query method is called there in the getter, You can take a look at what id done in the adapter-commons and in the memory adapter. And making a breaking change is not necessarily a bad thing if the behavior was buggy and if it fix it. |
We should definitely support this directly. I'm a bit swamped at the moment, so I can't participate much for another like 2 months. If any of you would like to create a PR, I'll make time to review and merge. |
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
touseFind
params infeathers-vuex
, we have to use bothparams
andfetchParams
as a workaround sincefeathers-vuex
doesn't see$limit: -1
as turning off pagination.Expected behavior
If
$limit: -1
is passed touseFind
params
I would expect for it to addpaginate: 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 toparams
.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:
Browser Version:
Module Loader:
The text was updated successfully, but these errors were encountered: