-
-
Notifications
You must be signed in to change notification settings - Fork 204
refactor: drop publish
, publishReplay
, and ConnectableObservable
#1638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ export class RxEffects implements OnDestroy, OnDestroy$ { | |
private static nextId = 0; | ||
readonly _hooks$ = new Subject<DestroyProp>(); | ||
private readonly observables$ = new Subject<Observable<unknown>>(); | ||
// we have to use publish here to make it hot (composition happens without subscriber) | ||
// we have to use share here to make it hot (composition happens without subscriber) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this comment even true? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, it's not... https://stackblitz.com/edit/rxjs-nwerqp?file=index.ts There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably it is meant in a different way There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why it is not true? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
private readonly effects$ = this.observables$.pipe(mergeAll(), share()); | ||
private readonly subscription = this.effects$.subscribe(); | ||
onDestroy$: Observable<boolean> = this._hooks$.pipe(toHook('destroy')); | ||
|
Uh oh!
There was an error while loading. Please reload this page.