Skip to content
This repository was archived by the owner on Dec 26, 2017. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/effects-subscription.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { OpaqueToken, Inject, SkipSelf, Optional, Injectable, OnDestroy } from '@angular/core';
import { Store } from '@ngrx/store';
import { Action, Store } from '@ngrx/store';
import { Observer } from 'rxjs/Observer';
import { Subscription } from 'rxjs/Subscription';
import { merge } from 'rxjs/observable/merge';
import { mergeEffects } from './effects';
import { Actions } from './actions';


export const effects = new OpaqueToken('ngrx/effects: Effects');

@Injectable()
export class EffectsSubscription extends Subscription implements OnDestroy {
constructor(
@Inject(Store) private store: Observer<Actions>,
@Inject(Store) private store: Observer<Action>,
@Optional() @SkipSelf() public parent: EffectsSubscription,
@Optional() @Inject(effects) effectInstances?: any[]
) {
Expand Down