{"size": 641, "ext": "js", "max_stars_repo_path": "src/components/FilterItem/sagas.js", "max_stars_repo_name": "marcopolo25/react-filteredlist", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/FilterItem/sagas.js", "max_issues_repo_name": "marcopolo25/react-filteredlist", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/FilterItem/sagas.js", "max_forks_repo_name": "marcopolo25/react-filteredlist", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.3666666667, "max_line_length": 67, "alphanum_fraction": 0.6630265211}
import * as effects from 'redux-saga/effects';
import {} from './constants';
import utils,{l,sagaRequest,sagaRequestSetup} from '../../utils';

/**
 * filterItem request/response handler
 */
export function* fetchFilterItem(args) {
    yield* sagaRequest(
        filterItemsModel.getById,
        {entityUUID: args.data.entityUUID},
        GET_APP_SUCCEEDED,
        GET_APP_FAILED,
        {...effects},
        false
    );
}

/**
 * Root saga manages watcher lifecycle
 */
export function* getFilterItem() {
    yield* sagaRequestSetup(fetchFilterItem, GET_APP, {...effects})
}

// Bootstrap sagas
export default [
    getFilterItem
];
