Skip to content
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

Pagination #26

Open
marrouchi opened this issue Feb 9, 2022 · 0 comments
Open

Pagination #26

marrouchi opened this issue Feb 9, 2022 · 0 comments

Comments

@marrouchi
Copy link

Hello,

I want to thank you first for this awsome library. We are having some trouble dealing with pagination when using useFind().
We would want to have a "load more" behavior, so that each time we would increase the limit. As it seems that useFind() will re-fetch the data from the begining. Adding a "$skip" parameter would not give us the data from the start.

Any idea how to deal with this plz ?

Also I noticed that feathers returns the data in the "meta" attribute in useFind.tsx finder() function and sort of does the fetchNext() recursively, so I guess it should be like this right :

result.limit = res.meta.limit
result.total = res.meta.total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant