You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicking favorite icon requires API response. I want the click to be instantaneous, and roll back if the modification fails.
TODOs
- [ ] Update the icon as soon as the end user clicks
- [ ] If API Request fails, roll back and write a simple snackbar that shows "failed to favorite (unfavorite) the word"
- [ ] If API Request successes, apply the given latest favorite status
The text was updated successfully, but these errors were encountered:
Background
Clicking favorite icon requires API response. I want the click to be instantaneous, and roll back if the modification fails.
TODOs
The text was updated successfully, but these errors were encountered: