Closed rijk closed 4 years ago
Small one: it would be nice if useHover() wouldn’t trigger an error.
useHover()
const [ show, hoverProps ] = useHover({})
const [ show, hoverProps ] = useHover()
I agree! That's an easy one ;) I will add this in the next release.
This should be fixed in v1.4.0 :)
Small one: it would be nice if
useHover()
wouldn’t trigger an error.const [ show, hoverProps ] = useHover({})
-> works (defaults are used)const [ show, hoverProps ] = useHover()
-> error ("cannot destructure null or undefined")