The Table component from Ant Design has the prop onChange which is fired whenever some pagination, filter or sort is happening. In my case it is about filtering. When using the default filter elements from the table head, the callback is fired. But I am using custom filter elements outside of the Table component which set a local state and this state is used for the filteredValue prop on the column. The filtering itself works flawless. But the onChange callback is not fired. I am interested in the attributes from onChange since they contain the currentDataSource props which represents the actual rendered data source object.
I can't find any other callbacks for Table which are triggered whenever the component renders.
Has anybody an idea about another way to get the rendered dataSource object when filters are enabled? Sure, I could start calculating on the original dataSouruce object because I am aware of the filters, but since Table provides the information in genereal I would like to prevent the redundancy.
Update:
See basic example here: https://codesandbox.io/s/react-antd-styled-template-73yxh Whenever you use the filter elements in the table head, you see a console.log event (via Table's onChange prop). When you click the button on the bottom, you will see that the filter changes, but the console.log event does not happen.