Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

162
Vistas
How can i request it multiple with redux-saga
// dispatch(cartsActions.deleteCartItem.request) - saga looks this request action
deleteSelectedCartItem(); 

// axios.post('/orders, .....)
ordersRequest.addOrderItem(selectedCartItems); 

I want to run these two when a button is clicked. So I put these together in the click event handler. DeleteSelectedCartItem works well normally. But the axios.post part doesn't work.

So I chekced the network tab.

enter image description here

The order is the part about the axios request, and the number is the request related to delete (if there are four items, send the deletion request number 4).

What's the problem? I'd appreciate it if you could help me.

+) deleteCartItemByIdSaga

export function* deleteCartItemByIdSaga({
  payload: { idToDeleteCartItem },
}: PayloadAction<DeleteCartItemRequestPayload>) {
  try {
    yield call(cartsRequest.deleteCartItemById, idToDeleteCartItem);
    yield put(cartsActions.deleteCartItemById.success({ deletedCartItemId: idToDeleteCartItem }));
  } catch (error) {
    if (error instanceof Error) {
      yield put(cartsActions.deleteCartItemById.failure({ error }));
    }
  }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda