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:
parent
f8b2b3707b
commit
29c3b8a26f
8 changed files with 83 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue