ToastNotification icon indicating copy to clipboard operation
ToastNotification copied to clipboard

It doesn't work with JavaScript's "fetch" api

Open SalehBagheri opened this issue 1 year ago • 1 comments

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?

SalehBagheri avatar May 30 '23 06:05 SalehBagheri