Skip to content

Comment reactions and comment deletion don’t update the UI until page refresh #5640

@milvasic

Description

@milvasic

Pre-submission Checklist

  • I have searched the existing issues and this bug has not been reported yet
  • I have tested this issue on the demo site or the latest version

Where did you encounter this bug?

  • Demo site (demo.usememos.com)
  • Self-hosted instance

Memos Version

v0.26.1

Bug Description

On the memo detail page, comment-related actions (adding/removing a reaction on a comment, or deleting a comment) succeed on the server but the UI does not update until the page is refreshed.
The comments list and individual comment cards are driven by a React Query cache that is not invalidated when these actions run, so the client shows stale data.

Steps to Reproduce

  1. Open a memo that has at least one comment (or add a comment).
  2. Reaction: On one of the comments, add a reaction (e.g. via the reaction selector in the comment header).
    • Observe: The new reaction does not appear on the comment until you refresh the page.
  3. Delete: Open the action menu (⋮) on a comment and choose “Delete”, then confirm.
    • Observe: The comment remains visible in the list until you refresh the page.

Expected Behavior

After adding or removing a reaction on a comment, the comment’s reactions update immediately.
After deleting a comment, the comment disappears from the list immediately.

Screenshots & Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions