System of likes

What’s the best way to implement likes on a post that has instant feedback?

can you rephrase this question?

1 Like

sorry, my order was a bit confusing

you’d need to use a realtime DB i’d presume. OR be polling your DB constantly.

i presume you mean if user. A clicks like, then User B sees that change in realtime. is that what you’re looking for?

1 Like

If your concern is local responsiveness, you can apply optimistic updating as a pattern. So the “liked” state is updated locally even while you’re waiting for data to come back from the server.

3 Likes

That, what I was looking for was an alternative as said by @raydeck , thanks a lot @jaredgibb and @raydeck for the help

1 Like