Skip to content

fix: 点赞后实时更新文章 likeCount#8

Merged
Rinisnotarobot merged 1 commit into
masterfrom
fix-like-feature
May 26, 2026
Merged

fix: 点赞后实时更新文章 likeCount#8
Rinisnotarobot merged 1 commit into
masterfrom
fix-like-feature

Conversation

@Rinisnotarobot

Copy link
Copy Markdown
Owner

修复点赞后文章列表页点赞数不更新的问题:

  • 文章列表使用 articleKeys.infinite() 缓存键,与 articleKeys.lists() 不同
  • 新增 updateInfiniteArticleLikeCount 乐观更新无限列表缓存
  • 新增 rollbackInfiniteArticleLikeCount 回滚无限列表缓存
  • invalidateKeys 添加 articleKeys.infinite() 确保缓存刷新

修复点赞后文章列表页点赞数不更新的问题:
- 文章列表使用 articleKeys.infinite() 缓存键,与 articleKeys.lists() 不同
- 新增 updateInfiniteArticleLikeCount 乐观更新无限列表缓存
- 新增 rollbackInfiniteArticleLikeCount 回滚无限列表缓存
- invalidateKeys 添加 articleKeys.infinite() 确保缓存刷新
Copilot AI review requested due to automatic review settings May 26, 2026 08:56
@Rinisnotarobot Rinisnotarobot merged commit 8f91b77 into master May 26, 2026
@Rinisnotarobot Rinisnotarobot review requested due to automatic review settings May 26, 2026 09:21
@Rinisnotarobot Rinisnotarobot deleted the fix-like-feature branch May 28, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant