I was using the of() operator to create observables with simple values, e.g. of(navigator.onLine) but I had to update RxJS version and I get this linter warning of is deprecated, use scheduled instead.
It's clearly not the exact same function and I should not be setting a scheduler.
How would you treat this ?
Any help appreciated.
Thanks.
This is was an rxjs bug, which is still open closed. Check here for more information
You can monitor this issue and for the meantime use:
// tslint:disable-next-line:deprecation
of(navigator.onLine);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With