Log critical assert

Summary: Use `IGFailure` to log critical issues

Differential Revision:
D46029468

Privacy Context Container: L1132866

fbshipit-source-id: f642a50310e7a7d7a80e01ba61d382bb9a794496
This commit is contained in:
Fabio Milano 2023-05-19 13:40:51 -07:00 committed by Facebook GitHub Bot
parent dffcd4d0c8
commit dbda739b62

View file

@ -231,6 +231,7 @@ willPerformBatchUpdatesWithCollectionView:self.collectionView
/// with our product team to properly fix their data source changes outside of the -performBatchUpdatesBlock:
/// IGLisKit processed a new being as an assert that requires investigation,
/// since it will be processed as invalid data source state that needs a reload.
IGFailure(@"The data source returned an invalid number of sections and rows due to updates applied outside of the performBatchUpdates block. This will cause a crash.");
[self begin];
return;
} else {