chore(learn): Merge learn in to the client app

This commit is contained in:
Bouncey
2018-09-30 11:37:19 +01:00
committed by Stuart Taylor
parent 9e869a46fc
commit 5b254f3ad6
320 changed files with 9820 additions and 27605 deletions

View File

@@ -0,0 +1,12 @@
import { ofType } from 'redux-observable';
import { mapTo, filter } from 'rxjs/operators';
import { types, onlineStatusChange, isOnlineSelector } from './';
export default function updateCompleteEpic(action$, state$) {
return action$.pipe(
ofType(types.updateComplete),
filter(() => !isOnlineSelector(state$.value)),
mapTo(onlineStatusChange(true))
);
}