Reducing unnecessary api calls is pretty important for optimizing of your application. You can consider using lodash-debounce or axios cancellation. They are really easy to use, so I highly recommend to try them.