Categories
It is necessary to block the button while the request is in progress, how to do it in this case?
disabled={state.is_disabled} /> ) => { event.preventDefault(); searchProduct(state) }}>Search Product
Answer the question
In order to leave comments, you need to log in
Before the request, set the isLoading flag to true, when the response came or the error, set it to false
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question