Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

85
Views
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 answers
Answer question

0

Shouldn't your mapStateToProps be

const mapStateToProps = (state) => {
  return {
    todos: state.todos,
  };
};
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!