Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Avoid scroll reset by adding an empty string as 1st react tree element (some bug with diffing) #160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lmatteis
Copy link

This is weird, but it works!

infinite-scroll.mov

Copy link
Owner

@alvarlagerlof alvarlagerlof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any idea why it works? (in more detail)

@alvarlagerlof
Copy link
Owner

Just for reference, for anyone looking. This is the deploy for main. Scrolls to the top for each new page added.

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

Successfully merging this pull request may close these issues.

2 participants