useCustomMutation timeout
I have a function like this one
mutate({
url:
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 ?
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 ?
