Where do optimistic responses gets returned or accessible provided in useMutation hook?

前端 未结 0 1174
闹比i
闹比i 2020-11-29 16:31

Suppose I have a graphql doc like this

type Project {
  id: ID!
  isStarred: Boolean!
}

Mutation {
  starProject(projectId: ID!): Boolean!
}

相关标签:
回答
  • 消灭零回复
提交回复
热议问题