Is this a good way to go about if you want to close notification after 5 seconds? in my case removeAfterSetDurationis not getting called.
function handleClose() { setGlobalData((state: any) => ({ ...state, message: "" })); }function removeAfterSetDuration() { setTimeout(() => { setGlobalData((state: any) => ({ ...state, message: "" })); }, 5000); }<Fade enter={true} exit={true} onEntered={removeAfterSetDuration}> <Notification type={{ style: 'warning', icon: false }} closable={true} onClose={handleClose} > <span>{props.message}</span> </Notification> </Fade>