incredible-moccasinI
Refine14mo ago
8 replies
incredible-moccasin

useCustomMutation timeout

I have a function like this one

mutate({
url: ${apiUrl}/strapi-chat/chat,
method: "post",
values: {
data: the_fields
}
},
{
onError: (error, variables, context) => {
// An error occurred!

console.log( error );
console.log( variables );
console.log( context );

},
onSuccess: (data, variables, context) => {

console.log( data );

setter( data.data?.data?.response );
},
});

how can I increase the timeout for the request ?
Was this page helpful?