Return isExecuting and isIdle in useAction #129
Closed
anarkrypto
started this conversation in
Ideas
Replies: 1 comment 6 replies
-
Check out this page in docs. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example:
I find it much more useful to check with
isExecuting
than doingstatus === 'executing'
checks throughout the code.I don't see a reason to return only the status as a string. Popular libs like react-query and SWR has
isLoading
Beta Was this translation helpful? Give feedback.
All reactions