Add optimistic response for markFavorite
This commit is contained in:
parent
9b6c9c3bd8
commit
26198d30e5
|
@ -139,6 +139,13 @@ export const Photo = ({
|
|||
photoId: photo.id,
|
||||
favorite: !photo.favorite,
|
||||
},
|
||||
optimisticResponse: {
|
||||
favoritePhoto: {
|
||||
id: photo.id,
|
||||
favorite: !photo.favorite,
|
||||
__typename: 'Photo',
|
||||
},
|
||||
},
|
||||
})
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue