mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
Adding optimisticresponse for deleteCommentReaction
This commit is contained in:
@@ -31,6 +31,14 @@ function commit(environment: Environment, input: CreateCommentReactionInput) {
|
||||
clientMutationId: clientMutationId.toString(),
|
||||
},
|
||||
},
|
||||
optimisticResponse: {
|
||||
deleteCommentReaction: {
|
||||
comment: {
|
||||
id: input.commentID,
|
||||
},
|
||||
clientMutationId: clientMutationId.toString(),
|
||||
},
|
||||
} as any, // TODO: (cvle) generated types should contain one for the optimistic response.
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user