2025-05-14 21:49:03 +02:00

29 lines
645 B
Handlebars

import { put, takeLatest, all, call } from 'redux-saga/effects';
// Apis from parent
import { api } from 'store/apis';
// Action type
import { StoreAction } from 'store/utils/actions';
import { genericCrudSagas, apiCall } from 'store/utils/sagas';
import { config } from 'config/general';
import actions from './actions';
import selectors from './selectors';
const treatmentOut = values => {
const output = {
...values,
};
return output;
}
function* {{camelCase name}}Watchers() {
yield all([...genericCrudSagas(actions, '{{camelCase name}}')]);
}
export default function* saga() {
yield call({{camelCase name}}Watchers);
}