How to check if a callback is defined (not empty)? #9736
Unanswered
showier-drastic
asked this question in
Q&A
Replies: 1 comment
-
|
right now this is not possible. I'm thinking we might want to have a way to detect that. This could be useful for optimization as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm making a button-like component. I would like to render the button as disabled, if a callback is not passed in. Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions