user15945543
user15945543

Reputation:

Redux-toolkit: Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers

hi I am getting an error about redux-toolkit.I don't know why it is showing me error and I have uploaded

full error: Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.

Upvotes: 0

Views: 1129

Answers (1)

phu.duongquoc
phu.duongquoc

Reputation: 130

you could try this

const reducer = combineReducers({
  auth: authReducer,
  users: userReduce
});

https://redux.js.org/api/combinereducers

Upvotes: 1

Related Questions