How can I maintain accurate and timely updates to the favorite status in my React app, considering the API’s occasional delay in reflecting changes?
In a React app for work, I need to implement a favorites feature for card items. Our data comes from a Portal with its own UI and favoriting capability, but the API doesn’t include an isFavorite property. To determine favorites, I make a secondary call to retrieve favorited item IDs and cross-check them with our item list on app load.