Open TallNutAlt opened 1 month ago
<PagerView ref={pageViewRef} initialPage={pageViewRefIndex.current} offscreenPageLimit={1} onPageSelected={e => handlePageSelected(e)}
HandlePageSelected is always executed every time the page is switched, and passing an index of 0 results in the inability to retain the state of an option selected by the tab user
If it always remains 0 after switching
similar
<PagerView ref={pageViewRef} initialPage={pageViewRefIndex.current} offscreenPageLimit={1} onPageSelected={e => handlePageSelected(e)}
If it always remains 0 after switching