gregnb / gregnb/mui-datatables
hi, i'm trying to setState in search action
Open
- Dominant language
- JavaScript
- Stars
- 2.7k
- Forks
- 906
- PR merge metrics
- No merged PRs in 30d
Description
hi, i'm trying to setState when type in input search but it delete, please if you have an idea about how to solve that problem and if you have an example code i'll i appreciate that.
i'm using async await and i try to use promises and pure function and i have some results;
onTableChange: async (action, tableState) => {
const newData = await this.customXhRequest({searchText, page:0, rowsPerPage:10, filterList:null});
this.setState({
isLoading: false,
})
})
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.