Scroll restoration issue with history.pushState #782
Unanswered
gielcobben
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a project with a masonry-style layout using Tanstack/Virtual, and I've run into a challenge I'd appreciate some help with.
Desired Functionality
Proposed Implementation
position: fixed
on the grid when a post is openedposition: fixed
style between the grid and post element.Key Difference from Modal Approach
Instead of opening posts in a modal with its own scrollbar, I want to leverage the window's scroll for both the grid and individual post views.
Current Issue
When loading the project for the first time:
Questions
Any insights, suggestions, or troubleshooting steps would be greatly appreciated. Thank you in advance for your help!
Component
https://s8tlfh-5173.csb.app/
https://codesandbox.io/p/github/gielcobben/remix-shallow/main
Beta Was this translation helpful? Give feedback.
All reactions