mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
added api fn to request git stats
This commit is contained in:
parent
29c3b8a26f
commit
2027ec65af
4 changed files with 18 additions and 2 deletions
|
@ -1,9 +1,14 @@
|
|||
import { takeLatest, put } from 'redux-saga/effects';
|
||||
import { takeLatest, put, call } from 'redux-saga/effects';
|
||||
import { BORIS_ACTIONS } from './constants';
|
||||
import { borisSet } from './actions';
|
||||
import { getBorisGitStats } from './api';
|
||||
|
||||
function* loadStats() {
|
||||
yield put(borisSet({ is_loading: true }));
|
||||
|
||||
const result = yield getBorisGitStats();
|
||||
console.log(result);
|
||||
|
||||
yield put(borisSet({ is_loading: false }));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue