Closed ArtemAstakhov closed 3 years ago
@ArtemAstakhov Thanks for checking out react-swipable! What you're experiencing is an expected error. Might I suggest this implementation? I confirmed it works ;)
const handlers = useSwipeable({
...(open && { onSwipedDown: onClose })
});
Describe the bug Library drops error if hook callback is undefined
Steps or Sandbox to reproduce