Prop onPageChange from CDataTable trigger two times.
See original GitHub issueHello, I am new in core ui. I try to use CDataTable and prop onPageChange. When I click other page, the prop onPageChange will trigger two times.
Here is my code
<CDataTable
items={this.state.consultant}
fields={fields}
itemsPerPage={10}
pagination
onPageChange={(page) => console.log('Page ', page)}
loading={true}
/>
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
CDataTable (Core UI React) prop onPageChange trigger 2 ...
Due to source of CDataTable, they use React useState for default behavior. There is still triggers 2 times, but do payload once.
Read more >DataTable - CoreUI
If prop is not passed columns will be generated automatically based on keys of the first passed item except keys beginning with underscore...
Read more >Inovua React Data Grid - change pre-built styling, like ellipsis ...
CDataTable (Core UI React) prop onPageChange trigger 2 times · how to map an array of images and use it as inline style...
Read more >coreui - Bountysource
Created 2 years ago in coreui/coreui-react with 1 comments. ... CDataTable setState onPageChange callback throws "Warning: Cannot update a component while ...
Read more >BIG-IP 12.1.3.7 Fixes and Known Issues - AskF5
Cumulative fixes from BIG-IP v12.1.2 Hotfix 2 that are included in this ... IKEv1 racoon daemon is not restarted when killed multiple times....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh oke thank you. But I just found a solution like this.
hello, i just want ask something. so in this example code, you use cpagination inside datatable or u make an object in props pagination cdatatable?