deep-jade
deep-jade•13mo ago

Is there any way to disable notifications on updates for a specific use case?

👆
3 Replies
kapa.ai
kapa.ai•13mo ago
Hi @developeratul. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but your question seems to be incomplete. Could you please provide more details or context? I'm here to provide information about Refine, a React-based framework for building data-intensive applications. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai•13mo ago
<@798179772420718612> kapa.ai is still learning and improving, please let us how it did by reacting below
deep-jade
deep-jade•13mo ago
For example
const { mutateAsync, isLoading, isSuccess } = useUpdate<Blog>();

await mutateAsync({
resource: "blogs",
id: blog.id,
values,
});
const { mutateAsync, isLoading, isSuccess } = useUpdate<Blog>();

await mutateAsync({
resource: "blogs",
id: blog.id,
values,
});
Whenever it updates, there is a new notification, which is nice to have, but in my particular case, I need to disable this. Is there any way? Looked into the documentation but did not find any related information. Am I missing something? I found the solution very quickly,
await mutateAsync({
resource: "blogs",
id: blog.id,
values,
successNotification: false,
});
await mutateAsync({
resource: "blogs",
id: blog.id,
values,
successNotification: false,
});