Keep pager feeds in sync with the right pane (#2775)
* Hoist selected feed state * Seed state from params * Refine and fix logic * Fix scroll restoration * Soft reset on second click
This commit is contained in:
parent
80c482b026
commit
06f81d6948
6 changed files with 148 additions and 63 deletions
|
@ -31,7 +31,7 @@ export const Pager = React.forwardRef(function PagerImpl(
|
|||
const anchorRef = React.useRef(null)
|
||||
|
||||
React.useImperativeHandle(ref, () => ({
|
||||
setPage: (index: number) => setSelectedPage(index),
|
||||
setPage: (index: number) => onTabBarSelect(index),
|
||||
}))
|
||||
|
||||
const onTabBarSelect = React.useCallback(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue