Skip to content

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

@IgordeOliveira

Description

@IgordeOliveira

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions