diff --git a/ui/src/components/photoGallery/Photo.js b/ui/src/components/photoGallery/Photo.js index b6bfe5f..7710105 100644 --- a/ui/src/components/photoGallery/Photo.js +++ b/ui/src/components/photoGallery/Photo.js @@ -139,6 +139,13 @@ export const Photo = ({ photoId: photo.id, favorite: !photo.favorite, }, + optimisticResponse: { + favoritePhoto: { + id: photo.id, + favorite: !photo.favorite, + __typename: 'Photo', + }, + }, }) }} />