Redux reducer 不会改变下一个状态存储

Redux reducer does not change next state store

这是我在 redux-react 中的小聊天应用程序 我对 reducer 有疑问,它没有改变下一个状态存储

https://github.com/arammkr/chat-redux/blob/master/src/reducers/user.js#L23

https://www.dropbox.com/s/5rnqx4jnaho0lbj/Screenshot%202016-05-30%2000.25.17.png?dl=0

这是控制台日志,您可以在其中看到操作有用户数组,但下一个状态用户数组为空。

看来您需要打开 action.type,而不是 action