bvaughn/react-virtualized-auto-sizer

API change in return type

markmcdowell opened this issue · 2 comments

Hello, I've just moved to the latest version and I can't compile in typescript due the changes to the children function.

Previous typings used ReactNode and it seems this has changed to ReactElement. This means I can't return null anymore.

Was this intentional? Our use case if the the space is less than a set breakpoint we hide the element.

Thanks!

children: (size: Size) => ReactElement;

Not intentional. Most likely an oversight in a larger refactoring.

Fixed in 1.0.16

Awesome thanks very much.