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

88
Vistas
Redux configureStore erros after adding another reducer

my current store looks like this:

import { configureStore } from "@reduxjs/toolkit";
import notesReducer from "./notesReducer";
import todoReducer from "./todoReducer";

const store = configureStore({
  reducer: todoReducer, // here i wanna add a notesReducer
});
export default store;

As said, i wanna add a notesReducer and what i have seen in tutorial i could do it by that:

const store = configureStore({
  reducer: { todo: todoReducer, note: notesReducer }, 
});

But this althoug, deploy an errror in my Todos.js file: TypeError: props.todos.map is not a function

Whole Todos.js file so you could help me finding the solution or things I did wrong: https://pastebin.com/AWyg8BXW

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Shouldn't your mapStateToProps be

const mapStateToProps = (state) => {
  return {
    todos: state.todos,
  };
};
about 4 years ago · Juan Pablo Isaza Denunciar
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