react-use-flexsearch
react-use-flexsearch copied to clipboard
rawResults.map is not a function when use Pagination option
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
#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?
nice, that's right, the repo owner needs to approve the merge request