1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

added saga for boris load stats

This commit is contained in:
Fedor Katurov 2020-06-08 14:01:20 +07:00
parent f8b2b3707b
commit 29c3b8a26f
8 changed files with 83 additions and 7 deletions

View file

@ -1 +1,12 @@
export default function* borisSaga() {}
import { takeLatest, put } from 'redux-saga/effects';
import { BORIS_ACTIONS } from './constants';
import { borisSet } from './actions';
function* loadStats() {
yield put(borisSet({ is_loading: true }));
yield put(borisSet({ is_loading: false }));
}
export default function* borisSaga() {
yield takeLatest(BORIS_ACTIONS.LOAD_STATS, loadStats);
}