How I can access to getState() to the slice reducer in reduxtoolkit using typescript?

前端 未结 0 930
失恋的感觉
失恋的感觉 2021-01-28 23:37
export const redirectUser = createAsyncThunk(
  "login/redirectUser",
  async (id, { getState, requestId }) => {
    const token = getState().LoginPageReduc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题