I'm not sure if this is an issue with typesafe-actions or redux in the end, but after only upgrading from redux 4.0.4 to 4.0.5, we are now getting this error:
error TS2589: Type instantiation is excessively deep and possibly infinite.
80 export const combinedReducers = combineReducers(reducersMapObject);
No issues when going back to 4.0.4 (we'll stay on this version for now).
Mandatory info
[Yes] Are you extending internal types to enable type-free syntax with createReducer?
import * as TypesafeActions from 'typesafe-actions';
declare module 'typesafe-actions' {
interface Types {
RootAction: TypesafeActions.ActionType<
typeof import('library/state/actions').default
>;
}
}
Possibly this ^^^ just too much now to work in our project on the new redux types?
Description
I'm not sure if this is an issue with
typesafe-actions
orredux
in the end, but after only upgrading from redux 4.0.4 to 4.0.5, we are now getting this error:No issues when going back to 4.0.4 (we'll stay on this version for now).
Mandatory info
createReducer
?Possibly this ^^^ just too much now to work in our project on the new
redux
types?How to Reproduce
We have 63
createReducer
calls with 34 total reducer objects being combined withcombineReducers
and 209 totalcreateAction
calls.No CodeSandbox Link
Not really sure how to provide a reproducible issue when it's likely the size of the project that's the cause and I can't share the code.
Expected behavior
It shouldn't give an error.
Suggested solution(s)
Possibly need to change how the types in the
redux
library are used?Project Dependencies
Environment (optional)