symphony-integration-commons
Version:
Common components for 3rd party developers build the user facing application for Symphony Integrations.
12 lines (10 loc) • 339 B
JavaScript
import { call, put } from 'redux-saga/effects';
import { getInstance as activeInstance } from './apiCalls';
export function* getInstance() {
try {
const instance = yield call(activeInstance);
yield put({ type: 'GET_ACTIVE_INSTANCE_RESETED', instance });
} catch (error) {
yield put({ type: 'FETCH_FAILED', error });
}
}