Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/blockstack/blockstack-ui/7fhtoacFBwiBgeaK8MooD4bNz4B8 |
|
| const onCloseHandler = isOpen ? handleClose : () => null; | ||
|
|
||
| useOnClickOutside(_ref, isOpen ? onCloseHandler : null); | ||
| useOnClickOutside(_ref, onCloseHandler); |
There was a problem hiding this comment.
Can you go into more detail about why this needs to be the case? I made this change originally because having the handler always on is a significant performance drain.
Closes #107