You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quickly clicking the like button of a comment will result in multiple likes or deductions at once, and may even produce a negative number on the front end. Need to add a lock.
Question Website | Website URL
blog.reincarnatey.net
Where is the service deployed? | Where your waline deploy?
Vercel (Default)
Where is the data stored? | Where your comment data store?
The ability to purely count likes, article reactions, and page views was expected to add atmosphere to the website, so I didn’t want to do anything heavy at that time, just a simple count. The problems you mentioned are actually known, and there are no plans to fix them through locking for the time being. At present, an invalid click operation in the front-end interface request should be added (not sure if it exists) to avoid this problem. In addition, many serverless databases do not have lock capabilities~
问题描述 | Describe the bug
快速点击评论的 like 按钮会导致一次性点多个赞或扣多个赞,在前端甚至会产生负数。需要加个锁。
问题网站 | Website URL
blog.reincarnatey.net
服务部署在哪里? | Where your waline deploy?
Vercel (Default)
数据存储在哪里?| Where your comment data store?
LeanCloud(https://leancloud.app)
Problem description | Describe the bug
Quickly clicking the like button of a comment will result in multiple likes or deductions at once, and may even produce a negative number on the front end. Need to add a lock.
Question Website | Website URL
blog.reincarnatey.net
Where is the service deployed? | Where your waline deploy?
Vercel (Default)
Where is the data stored? | Where your comment data store?
LeanCloud(https://leancloud.app)
The text was updated successfully, but these errors were encountered: