Skip to content

Instantly share code, notes, and snippets.

@elihart
Created November 20, 2019 17:33
Show Gist options
  • Save elihart/acef88c76b42e227ec680a12c0e8c2a1 to your computer and use it in GitHub Desktop.
Save elihart/acef88c76b42e227ec680a12c0e8c2a1 to your computer and use it in GitHub Desktop.
MvRx Set Syntax Shortcuts Example
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