From 4b606d581d18866576b9632b0537953c2b6006c4 Mon Sep 17 00:00:00 2001 From: Bruno Baia Date: Tue, 26 Sep 2017 15:18:50 +0200 Subject: [PATCH] chore(docs): Fix OnRunEffects example (#430) --- docs/effects/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/effects/api.md b/docs/effects/api.md index 3e8c9f12cd..4b6c865ed3 100644 --- a/docs/effects/api.md +++ b/docs/effects/api.md @@ -121,7 +121,7 @@ export class UserEffects implements OnRunEffects { ngrxOnRunEffects(resolvedEffects$: Observable) { return this.actions$.ofType('LOGGED_IN') - .exhaustMap(() => resolvedEffects$.takeUntil('LOGGED_OUT')); + .exhaustMap(() => resolvedEffects$.takeUntil(this.actions$.ofType('LOGGED_OUT'))); } } ```