-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disables prefetchEnabled by default #323
disables prefetchEnabled by default #323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 🎉
Thanks @svenbacia !
[self updateIGListCollectionViewDefaultValues]; | ||
} | ||
return self; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha 😅 we removed initWithCoder:
previously so that we don't override storyboard settings.
let's remove, but let's keep your tests (asserts will need to be flipped)
return self; | ||
} | ||
|
||
- (void)updateIGListCollectionViewDefaultValues { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's rename: updateWithDefaultValues
Actually, it feels bad to override storyboard settings. We probably shouldn't... Maybe we only do it for the prefetch property? cc @rnystrom |
1 more thing - @svenbacia, can you also update the CHANGELOG ? 😄 |
@svenbacia +1 only changing the I took a look and storyboards do have this as an option. However I think it's still worth disabling since you can't actually use the feature. @jessesquires maybe we should override: -(id<UICollectionViewDataSourcePrefetching>)prefetchDataSource {
return nil;
} Maybe assert that it isn't used? Or maybe we add compiler warnings like we do with other illegal methods? |
@svenbacia updated the pull request - view changes |
Awesome! @svenbacia just need to rebase then we can land. |
@svenbacia updated the pull request - view changes |
Done :) |
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Changes in this pull request
Disables
prefetchEnabled
by default onIGListCollectionView
(#318).Pull request checklist