Created
November 20, 2019 17:33
-
-
Save elihart/acef88c76b42e227ec680a12c0e8c2a1 to your computer and use it in GitHub Desktop.
MvRx Set Syntax Shortcuts Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state("Show cancellation policy subtitle") { | |
set { ::bookingDetails { success { ::cancellationSection { ::showSubtitle } } } }.with { true } | |
// Can also be written more simply as: | |
setTrue { ::bookingDetails { success { ::cancellationSection { ::showSubtitle } } } } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment