Skip to content

Cleanup for ref used for react-window#166

Merged
buxomant merged 2 commits intosaucelabs:mainfrom
sakhisheikh:sm-fix-ref-cleanup
Jul 14, 2025
Merged

Cleanup for ref used for react-window#166
buxomant merged 2 commits intosaucelabs:mainfrom
sakhisheikh:sm-fix-ref-cleanup

Conversation

@sakhisheikh
Copy link
Copy Markdown
Contributor

@sakhisheikh sakhisheikh commented Jul 11, 2025

Description

We are using _outref (privtate/internal) ref from react-widow. Instead the API already exposes outerRef as prop to FixedSizeList. We should exposed props to have better control over refs and avoid using internal api if it's not necessary.

It works but we are using a readonly ref. If we set it byourselves we have complete access to it how we would like to initialise it and even what could be target outer element for the FixedSizeList

@sakhisheikh sakhisheikh changed the title used outerRef instead of _outerRef Cleanup for ref used for react-window Jul 11, 2025
@buxomant buxomant self-requested a review July 14, 2025 08:32
Copy link
Copy Markdown
Contributor

@buxomant buxomant left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for simplifying the code

@buxomant buxomant merged commit 8e8eacf into saucelabs:main Jul 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants