src/redux/sagas/client.saga.js
// worker Saga: fired on "FETCH_CLIENT" actions dispatched from loading client table
worker Saga: fired on "FETCH_CLIENT" actions dispatched from loading client table
worker Saga : fired on " FETCH_CLIENT " actions dispatched from loading client table
function* fetchClientList() {
  try {
    const clients = yield axios.get('/api/info'); 
    console.log('get all clients:', clients.data);
    yield put({ type: 'SET_CLIENT', payload: clients.data });
  } catch (error) {
    console.log('Client get request failed', error);
  }
}
function * fetchClientList ( ) { try { const clients = yield axios . get ( '/api/info' ) ; console . log ( 'get all clients:' , clients . data ) ; yield put ( { type : 'SET_CLIENT' , payload : clients . data } ) ; } catch ( error ) { console . log ( 'Client get request failed' , error ) ; } }
worker Saga: fired on "FETCH_CLIENT" actions dispatched from loading client table
worker Saga : fired on " FETCH_CLIENT " actions dispatched from loading client table