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

**URL:** https://meta.discourse.org/t/is-it-possible-to-implement-like-and-dislike-functionality-at-the-topic-level-using-the-topic-list-item-component-in-discourse/261213
**Category:** Development
**Created:** [April 10, 2023, 5:52pm UTC](https://meta.discourse.org/t/is-it-possible-to-implement-like-and-dislike-functionality-at-the-topic-level-using-the-topic-list-item-component-in-discourse/261213 "2023-04-10T17:52:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sevadev-ramchandra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sevadev-ramchandra/32/301936_2.png) [@sevadev-ramchandra](https://meta.discourse.org/u/sevadev-ramchandra)
#### Post date: [April 10, 2023, 5:52pm UTC](https://meta.discourse.org/t/is-it-possible-to-implement-like-and-dislike-functionality-at-the-topic-level-using-the-topic-list-item-component-in-discourse/261213/1 "2023-04-10T17:52:42Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 10, 2023, 6:36pm UTC](https://meta.discourse.org/t/is-it-possible-to-implement-like-and-dislike-functionality-at-the-topic-level-using-the-topic-list-item-component-in-discourse/261213/2 "2023-04-10T18:36:54Z")

</div>

Dislikes are mostly seen as not conducive to civilized Discussion. But you migth check out [Discourse Reactions](https://meta.discourse.org/t/discourse-reactions/183261). There are also a bunch of topics matching “dislike” if you search.
