R
Refine

ask-any-question

increase notification duration from notification provider

Aadverse-sapphire1/9/2024
I am using useNotificationProvider from @refine/antd. Is there a way to increase the duration of the notification?
Kkapa.ai1/9/2024
Hi @synisme. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The provided extracts do not contain specific information on how to increase the duration of a notification when using the useNotificationProvider from @refine/antd. However, the notificationProvider object in Refine includes open and close methods, which Refine uses to show and hide notifications. The open method accepts parameters that may include settings related to the duration of the notification. Here is the general structure of the notificationProvider object:
const notificationProvider = {
open: (params: OpenNotificationParams) => void;
close: (key: string) => void;
};

interface OpenNotificationParams {
key?: string;
message: string;
type: "success" | "error" | "progress";
description?: string;
cancelMutation?: () => void;
undoableTimeout?: number;
}
const notificationProvider = {
open: (params: OpenNotificationParams) => void;
close: (key: string) => void;
};

interface OpenNotificationParams {
key?: string;
message: string;
type: "success" | "error" | "progress";
description?: string;
cancelMutation?: () => void;
undoableTimeout?: number;
}
(Source: Refine Documentation (https://refine.dev/docs/notification/notification-provider)) For more detailed information, I recommend checking the Refine Documentation (https://refine.dev/docs) or the Ant Design Notification Documentation (https://ant.design/components/notification). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Kkapa.ai1/9/2024
<@183085423604662273> kapa.ai is still learning and improving, please let us know how it did by reacting below

Looking for more? Join the community!

R
Refine

ask-any-question

Join Server