'Add button click in a Queue Process
I am using React native and hitting an api on button click
const onButtonClick = (variables_to_send_in_api) =>{
// hit an api over here
}
As i am hitting button 100 times so the api is hitting 100 times in parallel or it is cancelling the previous one. So i want that i will store this button click function in the redux. And i will work as it in the app in a queue and if i want to cancel any process of any index. Then i can cancel it. I am not getting that how can i store this logic in the redux and proceed with this. Let me know if anyone can help me with this.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
