yschimke
12/09/2021, 10:33 AMPages in bothDoes this mean it is safe to use LaunchedEffect as a signal that the current page is just been shown? Or do they get created eagerly when user is contemplating a scroll/starting a swipe? Should pager state change events be used instead?andHorizontalPager
are lazily composed and laid-out as required by the layout. As the user scrolls through pages, any pages which are no longer required are removed from the content.VerticalPager
cb
12/09/2021, 10:43 AMLaunchedEffect
reading what state? But yes, just use the PagerState.currentPage
, it's what it is there foryschimke
12/09/2021, 10:58 AMAlbert Chang
12/09/2021, 2:44 PMcurrentPage
is what you should use. See this.