cancel ongoing API requests with dio cancel token in flutter
I have to Tab in Tabbar button, and when user click on each tab is send a request with different query params, now if user tap of get_cars and quickly before getting data click on tab of get_drivers the data of get_cars show and after that data of get_drivers show, but i WANT===>
when user click on another option, cancel the previous requests and send the current option request.
cancel ongoing API requests with dio cancel token in flutter
I have to Tab in Tabbar button, and when user click on each tab is send a request with different query params, now if user tap of get_cars and quickly before getting data click on tab of get_drivers the data of get_cars show and after that data of get_drivers show, but i WANT===>
when user click on another option, cancel the previous requests and send the current option request.
cancel ongoing API requests with dio cancel token in flutter
I have to Tab in Tabbar button, and when user click on each tab is send a request with different query params, now if user tap of get_cars and quickly before getting data click on tab of get_drivers the data of get_cars show and after that data of get_drivers show, but i WANT===>
when user click on another option, cancel the previous requests and send the current option request.