2020-07-10 18:07:41 +02:00
|
|
|
import { all, put } from "redux-saga/effects";
|
2020-07-13 18:49:44 +02:00
|
|
|
import { fetchProfile } from "../actions/profile";
|
2020-07-10 18:07:41 +02:00
|
|
|
|
|
|
|
export function* initRootSaga() {
|
|
|
|
yield all([
|
2020-07-13 18:49:44 +02:00
|
|
|
fetchUserProfileSaga(),
|
2020-07-10 18:07:41 +02:00
|
|
|
]);
|
2020-07-13 18:49:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export function* fetchUserProfileSaga() {
|
|
|
|
yield put(fetchProfile());
|
2020-07-10 18:07:41 +02:00
|
|
|
}
|