79773827

Date: 2025-09-24 14:04:30
Score: 1
Natty:
Report link

Your addRecordToUserWishlist function is updating your db correctly, but your UI state isn't properly showing the changes because---->

  1. You are modifying the original record object directly (record.IsInWishlist = !record.IsInWishlist)

  2. Your UI state still referencing recordsInDatabase (the original Flow), not the newly updated data

This is what i understand in a quick look

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mohamed Rimshad