Skip to content

Implement <ScrollRestoration /> #4357

Closed
@FelixMalfait

Description

Current behavior

As of today, when you hit the "back" button, you are always redirected to the top of the page.
This is annoying when working with lots of records (e.g. Kanban board).

Screen.Recording.2024-03-07.at.12.31.03.mov

Desired behavior

Other websites like Github just record the scroll position.
This seems to be doable with https://reactrouter.com/en/main/components/scroll-restoration#scrollrestoration-

Edit: also check https://reactrouter.com/en/main/components/link#preventscrollreset not sure if needed

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions