The question is published on by Tutorial Guruji team.
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.
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);