Pass the notification into setTimeout() and this will resolve your issue. E.g setTimeout(() => notifications.error("Error!", "Payload and Response is not matching"), 100);