Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scoll_restoration component #31

Open
Archmonger opened this issue Jul 13, 2024 · 0 comments
Open

scoll_restoration component #31

Archmonger opened this issue Jul 13, 2024 · 0 comments

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Jul 13, 2024

Current Situation

React-Router has the ability to save the div's current scroll position and restore it upon URL changes.

Proposed Actions

The scroll_restoration component itself will need to develop this a server side component (to allow for server-side children). Under the hood, this will need to render a hidden JavaScript component that actually does the scroll restoration logic.

This JavaScript component might be able to directly use react-router's ScrollRestoration component, but creating our own from scratch is honestly pretty easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant