mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
12 lines
354 B
TypeScript
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);
|
|
}
|