ToastNotification
ToastNotification copied to clipboard
It doesn't work with JavaScript's "fetch" api
I am using asynchronous 'fetch' to send requests. The endpoint actions call the "_notyfService.Success" method, but the notyf doesn't work and it is not displayed on the screen.
JS code:
let response = await fetch('/controller/action');
and in Controller's action, I have:
_notyfService.Success("Text"); return new EmptyResult();
Any suggestion?