Search code examples
lithofacebook-litho

FbLitho repeats views in RecyclerCollectionComponent even when new section is loaded


FbLitho framework repeats views from the old section i.e Groupsection in RecyclerCollectionComponent even when a new section is loaded.


Solution

  • This might happen due to caching in fblitho [not sure] but it can be resolved by releasing the parent litho view on which you are calling setComponent. just call parentView.release()