score:1
the problem is here
export const selectuser = state => state.user.user;
you created slice with name counter
here
export default configurestore({
reducer: {
counter: userreducer,
},
});
try
export const selectuser = state => state.counter.user;
or rename counter
to user
Source: stackoverflow.com
Related Query
- Cannot read property '.then' of undefined when testing async action creators with redux and react
- React Redux Cannot read property 'dispatch' of undefined
- react / redux - cannot read property "yyy" of undefined
- Faced TypeError: Cannot read property 'counter' of undefined when using Redux in React
- Cannot read property 'map' of undefined - react , redux
- react TypeError: Cannot read property 'fulfilled' of undefined on Redux tool kit
- React Redux - Uncaught (in promise) TypeError: Cannot read property 'props' of undefined
- React Redux - TypeError: Cannot read property 'props' of undefined
- Avoid cannot read property 'map' of undefined in react redux
- TypeError: Cannot read property of undefined react redux
- React / Redux TypeError: Cannot read property 'Requests' of undefined in component
- TypeError: Cannot read property 'map' of undefined react redux when updating
- React Redux error Unhandled Rejection (TypeError): Cannot read property 'data' of undefined
- React redux Cannot read property 'firstName' of undefined
- React Redux Toolkit: TypeError: Cannot read property 'value' of undefined
- React Redux - Showing Dialog after posting data not working - Unhandled Rejection (TypeError): Cannot read property 'openDialog' of undefined
- React redux - Cannot read property 'state' of undefined
- React & Redux : cannot read property of undefined
- Using React Redux Loading Bar : Cannot read property 'default' of undefined
- React Redux TypeError: Cannot read property 'map' of undefined
- Uncaught TypeError: Cannot read property 'type' of undefined React Router Redux
- React Redux - Uncaught TypeError: Cannot read property 'setState' of undefined
- MERN Redux stack deleting a user by their id issue. Unhandled Rejection (TypeError): Cannot read property 'id' of undefined
- React redux TypeError: Cannot read property 'id' of undefined
- TypeError: Cannot read property 'map' of undefined in react redux
- React Redux Thunk with callback to another function -- TypeError: Cannot read property 'then' of undefined
- React - uncaught TypeError: Cannot read property 'setState' of undefined
- react router v^4.0.0 Uncaught TypeError: Cannot read property 'location' of undefined
- React with ES7: Uncaught TypeError: Cannot read property 'state' of undefined
- React enzyme testing, Cannot read property 'have' of undefined
More Query from same tag
- ReactJS - Have a "main" component that doesn't own it's children?
- How to deploy react app to godaddy server?
- Why do I get this error in React.js + GraphQL: Module build failed: SyntaxError: Unexpected token (10:6)
- Destructuring an object with useState
- substring is counting correct characters but not showing correctly on app
- Dynamically Generating objects as a grid in ReactJs
- How to get my array object into a material ui table
- How to render value in class based react
- Execute useEffect() only on specific setState()
- React strict mode and double rendering
- React Props not working, complete beginner
- firebase not loading data unless uid is hardcoded
- How can I check if address property is null or not in typescript?
- Redux Data Flow with React-hooks
- Col span and Row span in material-table header React
- Rotating seconds for each second in Stopwatch in React
- How to use scss directly in React components?
- React TypeError: Cannot read properties of undefined (reading 'params')
- Error: useRoutes() may be used only in the context of a <Router> component even if the app is wrapped around BrowserRouter
- How can I detect refresh page and routes change in react?
- How to know the direction a user is scrolling to in React.js?
- Saving array of objects in state and passing it to return to display it on web page in react
- Wrong React hooks behaviour with event listener
- Add image files into react state using 'useState'
- Create React context menu on the fly
- Why is this React State Returning as Undefined?
- Concurrent issue in React.JS
- What is the most effective way to prevent Express/mssql API for a react website being vulnerable to SQL Injection?
- How to divide array into two arrays depending on condition?
- Sort array of objects by by coincidence with another array JS REACT REDUX