如果你只是用 getState 来做条件判断是否要 dispatch action ,你可以考虑将这些逻辑放到 reducer 里面去。 下一步. 现在你应该对 thunk 的工作原理有了 ...
確定! 回上一頁