Subject doesn't inherit from Observable
See original GitHub issueRxJS version:
5.5.6
Code to reproduce:
const Rx = require('rxjs');
typeof Rx.Subject.fromEventPattern
Expected behavior:
"function"
Actual behavior:
"undefined"
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
angular - Subject of Observables in Inheritence Typescript
I was using Subject and Observable in Typescript in Inheritence. Their is Base Class - class Animals{ val: string = 'not present'; ...
Read more >On The Subject Of Subjects (in RxJS) | by Ben Lesh - Medium
Subject Compared To Observable In fact, in RxJS, Subjects even inherit from Observable. The advantage here is that all Subjects then have the...
Read more >Why use Observable.create() and not just inherit from ...
Note: Use create(OnSubscribe) to create an Observable, instead of this constructor, unless you specifically have a need for inheritance.
Read more >Problems with ObservableObject, bindings, and protocol ...
Subclass of an ObservableObject doesn't cause a render pass in SwiftUI when changing @Published properties defined in the subclass.
Read more >Can't use protocols with SwiftUI models? - Apple Developer
You're not restricted with a single inheritance class hierarchy. But there is no way to test and down-cast the protocol... protocol Marker :...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Also, it’s probably an artifact of how we’re using TypeScript in the
rxjs/add/*
modules to add the function toObservable
? I’m not sure. Either way, I’d recommend against using this pattern.This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.