instiapp-api
instiapp-api copied to clipboard
Reaction on Comments Doesn't Work properly as reacting on posts
How to replicate the issue on app
- React on a comment
- Go back from the full post view
- Come back you will see your reaction still in the combined reactions
- But will also see add new reaction icon instead of your reaction
- On clicking on your previous reaction your reaction wont delete
- To do so you have to click twice on your previous reaction
Probable Reasons
- Reaction by the user is not saved properly
- The logic applied while saving isn't foolproof
How to Solve
- Think of a better logic to save the user reactions
- Document that logic and also have a conversation regarding that logic with @SanskarGosavi2003 or @PalMit2002
- Code :)