mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
Restore scroll on infinite lists
This commit is contained in:
@@ -102,8 +102,9 @@ export const PlaylistListContent = ({ tableRef }: PlaylistListContentProps) => {
|
||||
rowCount: undefined,
|
||||
};
|
||||
params.api.setDatasource(dataSource);
|
||||
params.api.ensureIndexVisible(page.table.scrollOffset, 'top');
|
||||
},
|
||||
[page.filter, queryClient, server],
|
||||
[page.filter, page.table.scrollOffset, queryClient, server],
|
||||
);
|
||||
|
||||
const onPaginationChanged = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user