Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Add virtuosoProps property to ReactSortableTree #46

Merged
merged 4 commits into from
Apr 26, 2023

Conversation

rbenton
Copy link

@rbenton rbenton commented Apr 25, 2023

Hi @nosferatu500 and @tianzhich, my original motivation for this PR was the need to track a ReactSortableTree's scroll position so that it could be restored after navigating away and back to its containing view. However, I just noticed #45, which should also be resolved by these changes.

As you'll see, I've included a new Storybook page to demonstrate my scrollTop-tracking use case, along with a couple of new rows in the README's Props table (for virtuosoProps as well as virtuosoRef).

virtuoso-props

I also needed to update react-virtuoso to the latest version in order to get access to the Virtuoso.getState() method, and this caused the yarn.lock file to be modified rather extensively. Since this was done on MacOS 12.6.5 with Node 16.15.1, and I've not tested these changes in any other environment, you might want to verify that a fresh yarn install still works everywhere you expect it too.

Finally, I'd like to get these changes published in a new release of this package (say, v4.4.0?) as soon as possible. Please let me know if there's anything I can do to help out with that.

@nosferatu500
Copy link
Owner

Hi! Thank you for this PR!

LGTM

@nosferatu500 nosferatu500 merged commit bdf52d3 into nosferatu500:stable Apr 26, 2023
@rbenton rbenton deleted the virtuoso-props branch April 26, 2023 01:19
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