Open maks-humeniuk opened 2 years ago
I have some cases in my app, where I need to do something like this:
this.logger.info('Redirecting to remote...'); location.href = 'https://path/to/remote';
Obviously, log request is getting canceled, because calling document is destroyed before it completes.
So, it'd be great to be able to subscribe to logger methods like this:
this.logger.info('Redirecting to remote...').subscribe((): void => { location.href = 'https://path/to/remote'; });
or
this.logger.info('Redirecting to remote...').then((): void => { location.href = 'https://path/to/remote'; });
Yes indeed
This would require some thinking whether we include the API request in this or not
Hi. Did you find this reasonable to add to the library? My log requests are still not sent due to redirects 😅.
I have some cases in my app, where I need to do something like this:
Obviously, log request is getting canceled, because calling document is destroyed before it completes.
So, it'd be great to be able to subscribe to logger methods like this:
or