Skip to content

Commit

Permalink
chore(docs): Fix OnRunEffects example (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaia authored and brandonroberts committed Sep 26, 2017
1 parent 358f5ce commit 4b606d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/effects/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class UserEffects implements OnRunEffects {

ngrxOnRunEffects(resolvedEffects$: Observable<EffectNotification>) {
return this.actions$.ofType('LOGGED_IN')
.exhaustMap(() => resolvedEffects$.takeUntil('LOGGED_OUT'));
.exhaustMap(() => resolvedEffects$.takeUntil(this.actions$.ofType('LOGGED_OUT')));
}
}
```
Expand Down

0 comments on commit 4b606d5

Please sign in to comment.