Skip to content

PaginationProvider + ToolkitProvider Issues  #839

@yzhak

Description

@yzhak

@AllenFang

I can reproduce the bug described in #495 in the latest version:

react-bootstrap-table-next@3.0.0
react-bootstrap-table2-toolkit@1.3.1
react-bootstrap-table2-paginator@2.0.3
react-bootstrap-table2-filter@1.1.5

In addition, I have a related issue.
To reproduce:

  1. There are more than 10 rows and sizePerPage is 10.
  2. Search for some "SearchTerm1" in the SearchBar that returns 2 pages of results.
  3. Clear the search
  4. Go to page 3
  5. Search for the same "SearchTerm1"

Like above, it throws the following error and crashes the app:
Uncaught TypeError: Cannot read property 'name' of undefined
... where 'name' is the keyField passed to the ToolkitProvider.

I would really appreciate your help with this. And thank you for this library.

Originally posted by @yzhak in #495 (comment)

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