symphony-integration-commons
Version:
Common components for 3rd party developers build the user facing application for Symphony Integrations.
13 lines (11 loc) • 359 B
JavaScript
import { call, put } from 'redux-saga/effects';
import { getList } from './apiCalls';
export function* getInstanceList() {
try {
const instances = yield call(getList);
yield put({ type: 'FETCH_INSTANCE_LIST_SUCCESS', payload: instances });
} catch (error) {
console.error(error.message);
yield put({ type: 'FETCH_FAILED', error });
}
}