幸運的是, Redux Thunk 提供了一個讀取當前 store state 的方法。那就是除了傳入 dispatch 引數外,他還會傳入 getState 作為第二個引數,這樣 thunk ...
確定! 回上一頁