Currently useTextBuffer makes the API call on page load and I can't seem to prevent that behaviour with an option. I would like to make the API call on a button click only when the prompt has been entered by the user. Is something like enabled: false option possible? An idea from react-query's useQuery option.
Currently
useTextBuffermakes the API call on page load and I can't seem to prevent that behaviour with an option. I would like to make the API call on a button click only when the prompt has been entered by the user. Is something likeenabled: falseoption possible? An idea from react-query's useQuery option.