mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 01:38:26 +00:00
Add docs warning about reloadData being expensive
Summary: Followup from performance findings. Reviewed By: maxoll Differential Revision: D6388330 fbshipit-source-id: 057d5f49b5b8fd7216b795fef3977beba9368b3a
This commit is contained in:
parent
c7d4dc29a8
commit
2d5eed2477
1 changed files with 3 additions and 0 deletions
|
|
@ -131,6 +131,9 @@ NS_SWIFT_NAME(ListAdapter)
|
|||
Perform an immediate reload of the data in the data source, discarding the old objects.
|
||||
|
||||
@param completion The block to execute when the reload completes.
|
||||
|
||||
@warning Do not use this method to update without animations as it can be very expensive to teardown and rebuild all
|
||||
section controllers. Use `-[IGListAdapter performUpdatesAnimated:completion]` instead.
|
||||
*/
|
||||
- (void)reloadDataWithCompletion:(nullable IGListUpdaterCompletion)completion;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue