Currently the only factory method not exported as root from rxjs is Observable.create. I see no reason why this couldn't be the case? For consistency.
e.g.
const { defer, of, timer, Observable } = require('rxjs')
vs
const { defer, of, timer, create } = require('rxjs')
馃憤 This confused me I saw the migration docs imply that they all were removed and it seemed like from was the one to use but it turns out that Observable.create is still around and new Observable is more idiomatic
I think you're right. Although I think I'd want to just call it observable or the like.
I'd recommend most people just use new Observable, as it's more idiomatic, and is typed better in TypeScript.
Links were updated in #3846.
As create is deprecated we can close this issue.
See https://github.com/angular/components/issues/14785
Most helpful comment
I think you're right. Although I think I'd want to just call it
observableor the like.I'd recommend most people just use
new Observable, as it's more idiomatic, and is typed better in TypeScript.