Skip to content

Potential Bug: Like button state not saved after refresh  #19

Description

@leighbriody

I noticed that when you initially like a post, it renders the like and locally sets the state correctly, showing the like Icon full, and giving you the ability to unlike it.

Screenshot 2023-09-20 at 13 55 33

However, after a refresh, the state that shows the liked Icon full is not saved, and the user has the ability to like it again
Screenshot 2023-09-20 at 13 56 39

I think this has something to do with the "likedByCurrentUser" property not being set correctly, as this is always false.
Screenshot 2023-09-20 at 13 58 37

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions