Visible Event hasn't triggered when fragment resumed.
I also tried to call LithoView.setVisibilityHint(true);
on fragment resume but it doesn't work to trigger the visible event of the Component.
However, it will be triggered successfully when scrolling up / down to show the component view in the RecyclerCollectionComponent.
Facebook Litho: Visible Event hasn't triggered when fragment resumed
304 Views Asked by Kit At
1
This is unfortunately a known problem right now. If you call
LithoView#setVisibilityHint(true)
on resume, you will have also needed to callLithoView.setVisibilityHint(false)
in pause: in that case, you should get invisibility and visibility callbacks when you pause and resume, respectively.