Hi Bubblers!
My favourite community!
I have been working on social media like feature.
It has like and dislike buttons.
Everytime a user click like ( create new data ( post-likes) … it has field of the user and field for the post.
In the page where Posts RG, i use ( Do search for… Post-likes > post = this post > count.
I do exactly same for dislike buttons. Howevere,
Everytime user click (Like)…
I also ( do search for )… ( if made dislike for same post)…( delete).
Same for dislike button, so i make sure users cant like and dislike same post in same time.
It all works fine however, i have to refresh the page. If i don’t, i shows user liked and disliked same post.
Hope i didn’t confuse you!