Created
December 5, 2014 15:29
-
-
Save jdewind/e1a3da1c7f1e83dcbda1 to your computer and use it in GitHub Desktop.
This file contains 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
- (void) load { | |
RACSignal *signal = [[api fetchPerson: personId] flattenMap: ^(id person) { | |
return [[[api fetchFamilyMembers: person.id] map: ^(id familyMembers) { | |
return [self buildViewModel: person familyMembers: familyMembers]; | |
}] startWith: [self buildViewModel: person familyMembers: @[]]; | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment