I’m referring to this example: https://www.wix.com/corvid/example/custom-like-button
At the time of writing this; if click the like button there is a delay in response.
If you click it again multiple time you gonna be surprised of the result.
Instead of making the like count going up , it goes down.
Yet in this is example beforeInsert was used in the backend, duplicate entry was not prevented .
I face this problem with other API as wixData (query, getCurrentItem,…)
I try setTimeout and chaining promises to avoid this issue but didn’t workout for me.
Is there a way to solve the issue?