question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subject doesn't inherit from Observable

See original GitHub issue

RxJS version: 5.5.6

Code to reproduce:

const Rx = require('rxjs');
typeof Rx.Subject.fromEventPattern

Expected behavior: "function"

Actual behavior: "undefined"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
benleshcommented, Feb 26, 2018

Also, it’s probably an artifact of how we’re using TypeScript in the rxjs/add/* modules to add the function to Observable? I’m not sure. Either way, I’d recommend against using this pattern.

0reactions
lock[bot]commented, Jun 6, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found