use-async-function
use-async-function copied to clipboard
A React hook for integrating asynchronous function state into React function component state.
Results
1
use-async-function issues
Sort by
recently updated
recently updated
newest added
Proposed Syntax: `const loadUsers = useAsyncFunction( () => fetch('/users'), [x,y,z]);` where the array of [x,y,z] is used, either directly with useMemo, or indirectly with the same basic behavior, to reset...