API change in return type
markmcdowell opened this issue · 2 comments
markmcdowell commented
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!
bvaughn commented
Not intentional. Most likely an oversight in a larger refactoring.
Fixed in 1.0.16
markmcdowell commented
Awesome thanks very much.