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
Bloc Internal Mapping to Transition #840
Conversation
533fb8d
to
940e53b
Compare
Codecov Report
@@ Coverage Diff @@
## master #840 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 23 20 -3
Lines 373 351 -22
=========================================
- Hits 373 351 -22
Continue to review full report at Codecov.
|
61c7a01
to
d2856d0
Compare
d2856d0
to
eb71764
Compare
@brianegan when you have a min can you please take a look and lmk what you think? Thanks! |
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.
lgtm
one thing I would suggest doing after this gets merged is to spend more time in the docs explaining what is a Transition
, since I feel like we always talk about a few basic concepts, such as events/states, but always ignore transitions
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.
Good work! Only thing I'd consider: Adding a test to ensure each transition delivers the correct event with it. A test like that should fail in certain cases with the previous implementation (such as using flatMap
instead of asyncExpand
in the transformEvents
function), but should work with this new implementation.
d5bbbb0
to
bff6ffc
Compare
bff6ffc
to
8c52bf5
Compare
Status
READY
Breaking Changes
YES
Description
Transition
objects which encapsulate the current transition in order to ensure that transitions occur for the respective event/state pair -- addresses Remove RxDart dependency #839 (comment).transformStates
totransformTransitions
transformEvents
signature change to take aTransitionFunction
Todos
Impact to Remaining Code Base
transformStates
->transformTransitions
transformEvents