IGListKit/Source
Sash Zats d220f8a73f Fix re-entrance + caching when using IGListCollectionViewLayout
Summary:
The issue I've been seeing is that list kit would not recalculate layout for when collection view bounds would change

IGListCollectionViewLayout has code to invalidate layout when collection view size chances however it would not happen without explicitly calling `….collectionViewLayout invalidateLayout];`

It appears that in the loop of calculating the layout we would accidentally call the code that would start caching existing layout data (not calculated at the point of call) and cache the value

This does not seem to happen all the time, however moving the cache purge to the end of layout calculation loop seems reasonable since at this point we have the new values that can't be known to the cache

As long as the consumer uses `IGListCollectionViewLayout` explicitly or implicitly through convenience initialize of `IGListCollectionView` this fix should work as is

Reviewed By: fabiomassimo

Differential Revision: D50197736

fbshipit-source-id: cb6d818f8be965f2e6ba494ffea083a6ab35682d
2023-10-12 07:55:34 -07:00
..
IGListDiffKit Fix IGWarnAssert macro to remove unneeded condition parameter 2023-09-26 08:22:26 -07:00
IGListKit Fix re-entrance + caching when using IGListCollectionViewLayout 2023-10-12 07:55:34 -07:00
IGListSwiftKit Standarize the copyright notice in all source files 2023-04-06 02:44:16 -07:00
Info.plist Update deployment targets to silence Xcode 14 warnings (#1573) 2023-05-01 22:48:23 -07:00