R
export const $isAuth = $user.map(checkAuth)
и в отдельный файл такие мапперы/геттеры/комбайны/редюсеры
Size: a a a
R
c
AP
R
🦜
AP
AP
R
AM
const makeColorsEpic = (action$: Observable<ReturnType<typeof successLoad>>) =>
action$.pipe(
ofType(succesLoad.type),
switchMap(action => timer(0, 1000).pipe(
map(() => makeColors(action.payload.nodes)),
map(successColors),
takeUntil(action$.pipe(
ofType(clear.type)
))
))
);
S
🦜
const makeColorsEpic = (action$: Observable<ReturnType<typeof successLoad>>) =>
action$.pipe(
ofType(succesLoad.type),
switchMap(action => timer(0, 1000).pipe(
map(() => makeColors(action.payload.nodes)),
map(successColors),
takeUntil(action$.pipe(
ofType(clear.type)
))
))
);
AM
🦜
🦜
S
S
🦜
🦜
🦜