0

Is there any way to reset pageSize for react-table-v6? What I can do is only to change defaultPageSize value accessing ReactTable component state via refs but that will only set default value which still is the same but not reset user choice to default one.

Simple JavaScript like

 document.getElementById("pageSize").value = "10";

is not working on TableReact component.

Any tips on that?

JackTheKnife
  • 3,795
  • 8
  • 57
  • 117
  • The [docs](https://github.com/tannerlinsley/react-table/blob/master/docs/api/usePagination.md) seem to suggest that you use `usePagination` and `setPageSize` – Lior Pollak May 15 '20 at 13:37
  • @LiorPollak that is for the v7. Also I'm using `PaginationComponent` in v6 – JackTheKnife May 15 '20 at 15:04

0 Answers0