Skip to content

Commit

Permalink
prevent scroll reset
Browse files Browse the repository at this point in the history
  • Loading branch information
cartogram committed Apr 4, 2023
1 parent e59eb1f commit b2e1e71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/skeleton/app/components/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ function useLoadMoreWhenInView<Resource extends Connection>({
location.pathname + `?index&cursor=${endCursor}&direction=next`;

navigate(nextPageUrl, {
preventScrollReset: true,
state: {
pageInfo: {
endCursor,
Expand Down

0 comments on commit b2e1e71

Please sign in to comment.