1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00
vault-frontend/src/redux/boris/sagas.ts
2020-06-08 14:01:20 +07:00

12 lines
354 B
TypeScript

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);
}