React-table: React table v7 plugin hooks options not working in Typescript

Created on 20 Nov 2019  路  2Comments  路  Source: tannerlinsley/react-table

Using v7?

Currently, we are using "react-table": "^7.0.0-beta.12"

Describe the bug
When I trying to paginate the rows manually, Bypassing the UsePaginationOptions of manualPagination by true in the useTable options, It's thrown a below error in Typescript(.tsx)

'manualPagination' does not exist in type 'TableOptions<object>

Note: The above code is written in .tsx file.

Expected behavior
All the Plugin Hooks options need to work in Typescript(.tsx)

Codesandbox!
The above issues have been reproduced in the code sandbox (https://codesandbox.io/s/tannerlinsleyreact-table-pagination-controlled-mf98b). Kindly check and update
Screenshots
Kindly refer the below screenshots,
screenshot-codesandbox io-2019 11

Desktop:

  • OS: Ubuntu (64 bit)
  • Browser: chrome(78.0.3904.97)
types

Most helpful comment

@baskar383 Make sure you have done this: https://github.com/tannerlinsley/react-table/blob/master/TYPESCRIPT.md

Same thing happened to me at first.

All 2 comments

@baskar383 Make sure you have done this: https://github.com/tannerlinsley/react-table/blob/master/TYPESCRIPT.md

Same thing happened to me at first.

cc @androsj
Thnx for help us,

Was this page helpful?
0 / 5 - 0 ratings

Related issues

esetnik picture esetnik  路  3Comments

ocalde picture ocalde  路  3Comments

bdkersey picture bdkersey  路  3Comments

dilipsundarraj1 picture dilipsundarraj1  路  3Comments

dwjft picture dwjft  路  3Comments