-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
I'm seeing an issue with the following method:
- (void)repositoriesForOrganization:(NSString *)organization success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock;
When used in a for loop, passing organizations 1-by-1, the response array seems to concatenate the previous organization's repos to this list, as if the internal mutable array isn't clearing before each request.
What's happening is the self.multiPageArray isn't resetting between requests, and the only logic that initializes the multiPageArray to 0 items is in the init method of the engine itself.
self.multiPageArray = [@[] mutableCopy];
Does this mean we need to init the engine before each request?
Metadata
Metadata
Assignees
Labels
No labels