-
Notifications
You must be signed in to change notification settings - Fork 60
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
3.0.0: Dart 2 Support #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good overall - just a question and a nitpick
Remove combineTypedMiddleware -- no longer needed! Just create a normal List<Middleware>
This is a nice improvement!
ios/Flutter/Generated.xcconfig
Outdated
FLUTTER_BUILD_MODE=debug | ||
FLUTTER_BUILD_DIR=build | ||
SYMROOT=${SOURCE_ROOT}/../build/ios | ||
FLUTTER_FRAMEWORK_DIR=/Users/phillywiggins/lab/flutter/bin/cache/artifacts/engine/ios |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why flutter generates these guys, let's leave them out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack, good call. Will do.
@@ -7,4 +7,3 @@ with_content_shell: false | |||
dart_task: | |||
- test: --platform vm | |||
- dartanalyzer: --fatal-warnings lib | |||
- dartfmt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed that the Dart 1 and Dart 2 formatters format slightly differently. Is that why this was taken out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, no way I could satisfy both for the time being. Would like to add it back in eventually.
Appreciate the review! I'll remove those extra files and publish a new version tomorrow morning :) |
We were having some type issues with Dart 2, and I found that we needed to change the implementation of Redux a bit. Overall, I actually think there might be an underlying bug with Dart 2, but this change simplifies the way our typed combinations work and provides good support for Dart 2.
Fixes #22
Changes:
ReducerBinding
, useTypedReducer
combineTypedReducer
. UsecombineReducers
with normal reducers &TypedReducer
s.MiddlewareBinding
, useTypedMiddleware
.combineTypedMiddleware
-- no longer needed! Just create a normalList<Middleware<State>>
!