Replies: 2 comments
-
This is really confusing behaviour. I figured, since |
Beta Was this translation helpful? Give feedback.
-
#2002 was merged but that doesn't make |
Beta Was this translation helpful? Give feedback.
-
This is really confusing behaviour. I figured, since |
Beta Was this translation helpful? Give feedback.
-
#2002 was merged but that doesn't make |
Beta Was this translation helpful? Give feedback.
-
Related #2002, #2003, #1996, #1975
Currently,
Subject.create
is built to mimic it's behavior in v4 and under. That is thatSubject.create
actually returns anAnonymousSubject
, and not aSubject
.Problem
create
in this library, which is as an alternative tonew
... for example:new Observable(fn)
vsObservable.create(fn)
. This creates confusion for users (and experts, apparently)AnonymousSubject
into it's own module, because there would be a circular reference withSubject
, which has this create method that only creates anAnonymousSubject
.Proposal:
Subject.create
becomes alternative version ofnew Subject
AnonymousSubject.create
does whatSubject.create
does now... which is just an alternative version tonew AnonymousSubject
.AnonymousSubject
to it's own module.Beta Was this translation helpful? Give feedback.
All reactions