Skip to content

Commit

Permalink
fix(ui): cancel previous request on search schema (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisSouquiere authored Jul 31, 2023
1 parent 667a594 commit f8c8a06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/containers/Schema/SchemaList/SchemaList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ class SchemaList extends Root {

handleSearch = data => {
const { searchData } = data;

// Cancel previous requests is there are some to prevent UI issues
this.cancelAxiosRequests();
this.renewCancelToken();

this.setState({ pageNumber: 1, searchData }, () => {
this.getSchemaRegistry();
});
Expand Down

0 comments on commit f8c8a06

Please sign in to comment.