reducer 最好是pure function
fobbyal opened this issue · comments
Alex Liang commented
reducer 不因该有side affect 如果有需要. 用middleware 存 localstate..或者用setTimer 存.
https://github.com/damonare/memos/blob/master/app/reducers/todos.jsx#L27
Damonare commented
谢谢指教