petyosi / react-virtuoso

The most powerful virtual list component for React
https://virtuoso.dev
MIT License
5.13k stars 299 forks source link

fix: stop "Zero-sized element, this should not happen" error from showing up when it should not #1061

Closed DovydasSp closed 4 months ago

DovydasSp commented 4 months ago

this should fix #1060

Very ugly and extreme example where it happens: https://codesandbox.io/p/sandbox/red-glitter-hcqz3d?file=%2FApp.js%3A62%2C1 After fix: https://codesandbox.io/p/sandbox/hungry-roentgen-3ff9yp

petyosi commented 4 months ago

That's the way to go. I will test and likely merge over the weekend.

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 4.7.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket: