symphony-integration-commons
Version:
Common components for 3rd party developers build the user facing application for Symphony Integrations.
16 lines (14 loc) • 426 B
JavaScript
import { call, put } from 'redux-saga/effects';
import { getInstructions as getAppInstructions } from './apiCalls';
import {
FETCH_FAILED,
GET_APP_INSTRUCTIONS,
} from '../actions';
export function* getInstructions() {
try {
const instructions = yield call(getAppInstructions);
yield put({ type: GET_APP_INSTRUCTIONS, instructions });
} catch (error) {
yield put({ type: FETCH_FAILED, error });
}
}