useNotification
It can be used to open or close notification at any time. It returns the open and close method from notificationProvider under the hood.
Usage
import { useNotification } from "@pankod/refine-core";
const { open, close } = useNotification();
caution
This hook can only be used if notificationProvider is provided.
tip
If you are using Ant Design you can use notificationProvider exported from @pankod/refine-antd package. It is compatible with Ant Design's notification component.
import { notificationProvider } from "@pankod/refine-antd";
<Refine
...
notificationProvider={notificationProvider}
/>