Task-based asynchronous callback hook (convinience binding)
Task equivalent to useCallback hook allowing to perform asynchronous callbacks
Task execution is automatically interrupted in case of additional calls or unmounting. This way, only one task is running at the given time
callback arguments type
resulting task resolve type
task taskFunction to be invoked as callback
dependency list
callback to be invoked
Rest
useTaskCallbackState
Task is not cancelled on hook re-render, but is cancelled on the next call instead
Generated using TypeDoc
Task-based asynchronous callback hook (convinience binding)
Task equivalent to useCallback hook allowing to perform asynchronous callbacks
Task execution is automatically interrupted in case of additional calls or unmounting. This way, only one task is running at the given time