New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dart 2 issue #22
Comments
I get a similar issue when dispatching actions using my store:
I believe changes to the redux_dart library need to be made in order to bring it up to speed with Dart 2, i'll try to investigate further |
Thanks for the reports! I'll try to find time soon to look into the issues :) |
@driveddy Hrm, are you passing the @envious Are you also using If either of you are providing your own Reducer to the store (not one generated by |
My Store looks like this
And as in #3 I noticed I didn't turn on |
Hrm, that's an interesting one! If you add the typing to the
If you're on master branch, it should be running Dart2 by default now, so you don't need to add the flag. |
Unfortunalty no -_- Even if I add
|
Thanks for the reports! Sorry about these issues. I've found that all tests pass using the standalone Dart 2 SDK, but fail using Flutter test. Redux runs all its tests using the standalone SDK since it's a pure dart lib, but this might be hiding an error, or Flutter might be running into an error. I've filed a bug on the repo: flutter/flutter#15900 |
I encounter the same issue
|
Thanks for the report @dodyg! As a heads up, I'm waiting on a response from the Flutter team to see if they can help us out here. Hard to know if this is a legit type issue that needs fixing or a Dart 2 problem since Redux works with the Dart 2 SDK but not on Flutter with the Dart 2 SDK. |
Hey @driveddy, @envious & @dodyg -- Just a heads up that I've released a new version of Redux 3.0.0 which addresses this problem. It also simplified the Redux API a bit, but requires a small migration. Please see the README for details: https://github.com/johnpryan/redux.dart/#redux-300-migration--dart-2-support |
Hello,
after updating to dart 2. I get the following error when using
Reducer
My code looks like the following:
If I set the type to
dynamic
it works but I would prefer to not have to case the action.Any idea?
The text was updated successfully, but these errors were encountered: