#Usage when estimateSize should be updated after mount?

2 messages · Page 1 of 1 (latest)

cerulean solar
#

I'm currently trying to calculate each item's size after mount (item count / view window size), but the virtualizer doesn't reflect the size change.
I understand that it is not a good idea to calculate size changes every time the estimateSize function reference changes, but it's making my usecase unusable 😭
Maybe we could introduce something like a key option to reinitialize (or at least recalculate) the virtualizer after mount 🤔 not sure if it's the best way to solve the problem though.

#

Well, setting count to zero on first render actually solved the issue 😂