solid-orange
solid-orange11mo ago

Remove notification

Hi there guys! How can i delete this notification
No description
4 Replies
kapa.ai
kapa.ai11mo ago
Hi @.kinaye. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- In refine, you can close a notification using the close method from the useNotification hook. This method requires a key which is the identifier of the notification you want to close. Here's an example of how you can use it:
import { useNotification } from "@refinedev/core";

const { close } = useNotification();

close?.("notification-key");
import { useNotification } from "@refinedev/core";

const { close } = useNotification();

close?.("notification-key");
In this example, replace "notification-key" with the key of the notification you want to close. For more information, you can refer to the useNotification documentation (https://refine.dev/docs/api-reference/core/hooks/useNotification) and the NotificationProvider documentation (https://refine.dev/docs/api-reference/core/providers/notification-provider/). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai11mo ago
<@453844603791998977> kapa.ai is still learning and improving, please let us how it did by reacting below
useful-bronze
useful-bronze11mo ago
@.kinaye that notification appears whenever you use Inferencers. Just copy the code and replace it.
solid-orange
solid-orange11mo ago
code that sent me bot i think useles, but thanks for your answer of Inferencers, i will try to solve it