I'm receving a type error on one of my reducers and I don't know what to do:
Argument of type '() => PayloadAction<"USER/AUTH/RENEW", RequestPayload>' is not assignable to parameter of type '((...args: any[]) => PayloadAction<"USER/PERMISSION/SET_LOCATION", PermissionInfo> | PayloadAction<"USER/PERMISSION/SET_LOADING", boolean> | ... 11 more ... | EmptyAction<...>) | ((...args: any[]) => PayloadAction<...> | ... 12 more ... | EmptyAction<...>)[]'.
Type '() => PayloadAction<"USER/AUTH/RENEW", RequestPayload>' is not assignable to type '(...args: any[]) => PayloadAction<"USER/PERMISSION/SET_LOCATION", PermissionInfo> | PayloadAction<"USER/PERMISSION/SET_LOADING", boolean> | ... 11 more ... | EmptyAction<...>'.
Type 'PayloadAction<"USER/AUTH/RENEW", RequestPayload>' is not assignable to type 'PayloadAction<"USER/PERMISSION/SET_LOCATION", PermissionInfo> | PayloadAction<"USER/PERMISSION/SET_LOADING", boolean> | ... 11 more ... | EmptyAction<...>'.
Type 'PayloadAction<"USER/AUTH/RENEW", RequestPayload>' is not assignable to type 'PayloadAction<"USER/PERMISSION/SET_LOCATION", PermissionInfo>'.
Type '"USER/AUTH/RENEW"' is not assignable to type '"USER/PERMISSION/SET_LOCATION"'.
I'm using 2 actions from with similar type signatures generated from createAsyncActions one is:
I have 3 more reducers, one of them is using a single async action with no problems. When I tried to add two and the auth reducer everything exploded and I don't know why.
I'm using the same configuration on the codesandbox and changing the order of the handleActions just change on which one it will show the error.
I'm receving a type error on one of my reducers and I don't know what to do:
I'm using 2 actions from with similar type signatures generated from createAsyncActions one is:
and the other
this is the reducer with the error
This is the other action cited on the error:
I have 3 more reducers, one of them is using a single async action with no problems. When I tried to add two and the auth reducer everything exploded and I don't know why.
I'm using the same configuration on the codesandbox and changing the order of the handleActions just change on which one it will show the error.