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

rawResults.map is not a function when use Pagination option #12

Open
IgordeOliveira opened this issue Jul 2, 2020 · 2 comments
Open

Comments

@IgordeOliveira
Copy link

IgordeOliveira commented Jul 2, 2020

When I pass the paging option to hook, it returns this error to me
my code:

  const results = useFlexSearch(searchTerm, index, JSON.parse(store), {
    limit: 5,
    page: true
  })

most likely because when I use page: true it returns me an object instead of an array https://github.com/nextapps-de/flexsearch#pagination

@Jixabon
Copy link

Jixabon commented Aug 3, 2020

#14 Just submitted a fix. Unfortunately, I'm not all that familiar with how to contribute to other projects so I'm assuming that we wait for the owner to merge it in?

@IgordeOliveira
Copy link
Author

nice, that's right, the repo owner needs to approve the merge request

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

2 participants