SawyerHood / draw-a-ui

Draw a mockup and generate html for it
https://draw-a-ui.com
MIT License
13.25k stars 1.59k forks source link

fix: Suppress multiple requests to OpenAI after clicking the ExportButton #26

Closed kawana77b closed 11 months ago

kawana77b commented 11 months ago

This proposal is a simplified method, but suppresses duplicate requests to OpenAI after the ExportButton is clicked, while the spinner is still spinning. This prevents users from accidentally clicking the button too many times, resulting in excessive requests.

I think this is a great demo. Thank you I appreciate it.