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:
Ryan Nystrom 2017-11-21 13:06:13 -08:00 committed by Facebook Github Bot
parent c7d4dc29a8
commit 2d5eed2477

View file

@ -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;