Skip to content

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

@leighbriody

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

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