Is it possible to implement like and dislike functionality at the topic level using the topic-list-item component in Discourse?

I have modified the topic-list-item component in Discourse to include the ability to like topics. However, I am struggling to implement the toggleLike functionality and also find that the liked property of the topic object is set to null on refresh. I am wondering if it is possible to implement both like and dislike functionality at the topic level and if there are any best practices for dealing with the liked property resetting on refresh.

Dislikes are mostly seen as not conducive to civilized Discussion. But you migth check out Discourse Reactions. There are also a bunch of topics matching “dislike” if you search.

2 Likes