How to keep 'enabled' prop reactive when a Ref is passed
My code:
If I just pass
If I just pass
!!input.value it isn't reactive, and if I pass !!input it's always true. How do I avoid triggering a fetch when the input is an empty string?