Closed AxelMarquez closed 6 years ago
Hey @AxelMarquez, wow, that's a crazy message haha. In any case, it's basically saying you need to provide a bit more type information to combineReducers
, e.g. combineReducers<bool>
:
final hasInternetReducer = combineReducers<bool>([
TypedReducer<bool, LostInternetAction>((bool state, LostInternetAction action) => false),
TypedReducer<bool, RecoveredInternetAction>((bool state, RecoveredInternetAction action) => true),
]);
You're right! I thought flutter's type inference would catch that, sadly it didn't :( Many thanks for the help
Yah, it's been a little rough in that regard... I don't think the IDE warnings have caught up with the language implementation, so I've noticed a lot of runtime errors as well
After upgrading my project to flutter-redux: 0.5.0 and dart-redux: 3.0.0 I’m having this issue. The code rising the error is:
The complete error is:
I'm using dart 2 with flutter v0.2.7-pre.1 No issues found by flutter doctor