Closed stnwk closed 5 years ago
Hi :)
I think I understand why you'd want this ability, although I also think it's an edge case and in nearly all cases– forcing an overscan for accessibility is the "right" thing to do.
I don't really have the time to implement this, but if you'd be interested in submitting a PR with all of the following, I'd probably be willing to merge it:
validateSharedProps
and be wrapped in the process.env.NODE_ENV !== 'production'
check so as not to bloat the production bundle.)Thanks!
I'll take care of this then, expect a PR when your back from your holidays :)
(not being creepy, just following you on twitter haha)
Enjoy your family time!
Thank you! 😄 Sounds good to me.
Full disclosure: I ended up not needing this particular option, so there's no need for me at this time to implement it.
Still, thanks again for your time & thoughts!
This was exactly the feature we needed right now. Our background: We have a default height for each row and the actual height is calculated after the data is fetched from the server. The user has the possibility to scroll to a specific item automatically and display it at 'start'.
The problem: If the item in the overscan area before the scrollToItem has a height greater than the default height the item that should be aligned at 'start' is pushed down by the height difference after the data was fetched from the server.
Hi :)
I was wondering whether you'd consider to allow actually setting
overscanCount
value of 0. Currently the required minimum is1
to enable tabbing, which is completely understandable.However, I am currently working on a case where the rendered items are rather expensive and tabbing is not important/disabled on purpose so I'd really appreciate a way to override this.
Thanks for your consideration!