Skip to content

Pagination #26

@marrouchi

Description

@marrouchi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions