<MaterialTable
rowData => ({
icon: () =>
<DeleteOutline color='action' />,
tooltip: 'Delete User',
onClick: (event, rowData) => {
event.stopPropagation();
<Mutation // this is not executing
mutation={delete_users}
variables={{input: rowData.userid}} >
{(deleteCdeUser, { loading, error, data }) =>
{
console.log(data); // here i should get the data
}}
</Mutation>
}
})
]}
/>
突变在以下点根本不执行。我是 graphql 和 apollo 的新手。任何帮助将非常感激