Im building a cart system using Expo – React Native, my issue starts when the user adds or removes the data continuously because every time the user presses Increment or Decrement button the data changes, so is there any way to wait until the user tapping (button) is finished then execute the function?
For better understanding i will attach i GIF or a link to a video so you can see the idea from This app called Talabat
as you can see here you can press the add or remove button continuously then after you stop the price updates
I tried to implement this using UseState and timers but each time a new timer will be presented and the app will overload
1