memos icon indicating copy to clipboard operation
memos copied to clipboard

0.12.0 每日回顾重复请求 /api/memo?rowStatus=NORMAL&limit=20

Open Weibin74 opened this issue 1 year ago • 9 comments

Describe the bug

WX20230404-101308

Steps to reproduce

  1. 选择每日回顾
  2. 选择前一天
  3. 前端开始无限制重复请求
  4. 刷新页面可以停止, 点击其他位置不能, 还会加剧请求频率

Screenshots or additional context

docker 环境

Weibin74 avatar Apr 04 '23 02:04 Weibin74

Issue is not in English. It has been translated automatically.


Title: 0.12.0 Daily review repeat request /api/memo?rowStatus=NORMAL&limit=20

Issues-translate-bot avatar Apr 04 '23 02:04 Issues-translate-bot

我这儿没问题,你试下关闭一些扩展看看

sprite82y avatar Apr 04 '23 17:04 sprite82y

Issue is not in English. It has been translated automatically.


I have no problem here, try disabling some extensions

Issues-translate-bot avatar Apr 04 '23 17:04 Issues-translate-bot

我在无扩展的情况也试过了, 还是同样的问题. 并且还发现一个现象, 在主页中筛选会重复请求的一天, 这里调用的接口有偏移量(offset)参数, 但是在每日回顾里只是重复请求. 是否为这个原因, 遗忘了偏移量的添加

4_3_repeat

4_3_offset

Weibin74 avatar Apr 06 '23 03:04 Weibin74

Issue is not in English. It has been translated automatically.


I also tried it without the extension, and it still has the same problem. I also found a phenomenon that the filter on the homepage will repeat the requested day, and the interface called here has an offset (offset) parameter, but in every In the daily review, the request is just repeated. Is it for this reason, the addition of the offset is forgotten

4_3_repeat

4_3_offset

Issues-translate-bot avatar Apr 06 '23 03:04 Issues-translate-bot

相似的bug

ychisbest avatar Apr 26 '23 09:04 ychisbest

Issue is not in English. It has been translated automatically.


similar bug

Issues-translate-bot avatar Apr 26 '23 09:04 Issues-translate-bot

应该是 memos/web/src/pages/DailyReview.tsx 中 useEffect 函数导致的

ychisbest avatar Apr 26 '23 10:04 ychisbest

Issue is not in English. It has been translated automatically.


It should be caused by the useEffect function in memos/web/src/pages/DailyReview.tsx. It is not clear how to trigger it

Issues-translate-bot avatar Apr 26 '23 10:04 Issues-translate-bot

Maybe fixed in the recent release. Feel free to open a new issue if it still existed.

boojack avatar Sep 17 '23 02:09 boojack