IsLoading delay
#5938
Replies: 2 comments
-
can you show a codesandbox reproduction ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you sure you're not |
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 am using the isLoading property to disable the button so users dont double press it.
However, the isLoading has a delay, most likely not changing state until the network actually starts making the request. I can actually double press so its not working.
Obviously, I dont want to introduce another state variable for this very common use case.
Is there anything else i could use from the hooks, or would it make sense to move that isLoading state higher in this component?
This seems like a very common use case, and introducing another state variable just doesn't seem like the way.
Beta Was this translation helpful? Give feedback.
All reactions