coopcycle / coopcycle-web

Logistics & marketplace platform. Only for worker-owned business.
https://coopcycle.org
Other
571 stars 130 forks source link

fixed: avoid calling `sync()` action twice #4561

Closed vladimir-8 closed 3 months ago

vladimir-8 commented 3 months ago

fixed: avoid calling sync() action twice on loading a restaurant page: http://*/en/restaurant/3-burger-bar

Which leads to a double POST/*/restaurant/*/cart requests with in turn leads to a creation of double adjustments (delivery fees)

Screenshot 2024-08-09 at 12 12 50

❗️you will probably see double POST requests in the development environment, that due to the StrictMode

vladimir-8 commented 3 months ago

could fix the global issue about duplicated delivery fees?

At least partially. I remember I saw that it happens from the mobile app sometimes, but that fix will not fix that