bvaughn / react-virtualized-auto-sizer

Standalone version of the AutoSizer component from react-virtualized

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API change in return type

markmcdowell opened this issue · 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.