File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
*
2
- ! dist /**
2
+ ! lib /**
3
+ ! use-async-effect.d.ts
Original file line number Diff line number Diff line change 6
6
7
7
## useAsyncEffect2 :snowflake :
8
8
9
- This library provides asynchronous versions of the ` useEffect ` and ` useCallback ` React hooks that can cancel
10
- asynchronous code inside it due to timeouts, user requests, or automatically when a component is unmounted or some
11
- dependency has changed.
9
+ This library makes it possible to use cancellable async effects inside React components by providing asynchronous
10
+ versions of the ` useEffect ` and ` useCallback ` hooks. These hooks can cancel asynchronous code inside it due to timeouts,
11
+ user requests, or automatically when a component is unmounted or some dependency has changed.
12
12
13
13
The library is designed to make it as easy as possible to use complex and composite asynchronous routines
14
14
in React components. It works on top of a [ custom cancellable promise] ( https://www.npmjs.com/package/c-promise2 ) ,
You can’t perform that action at this time.
0 commit comments