Categories
Mastering Development

How to cancel the previous graphicql request in react.js

I am using the graphicql in the react.js project. When the value of search box change, system call the grapicql api each time. But I receive the previous response after the last response. So I need to ignore the previous requests.