Skip to content

Instantly share code, notes, and snippets.

@fabiothiroki
Created January 29, 2018 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiothiroki/d7be1df17368d835039456d0156ca994 to your computer and use it in GitHub Desktop.
Save fabiothiroki/d7be1df17368d835039456d0156ca994 to your computer and use it in GitHub Desktop.
Actions
struct FetchPlacesAction: Action {}
struct SetPlacesAction: Action, Equatable {
let places: LocationPlaces
static func == (lhs: SetPlacesAction, rhs: SetPlacesAction) -> Bool {
return lhs.places == rhs.places
}
}
struct SetErrorAction: Action {
let error: Error
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment