Skip to content

Commit 9d48443

Browse files
Fixed .npmignore due to missing module typings;
1 parent 2cb3ca5 commit 9d48443

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: .npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*
2-
!dist/**
2+
!lib/**
3+
!use-async-effect.d.ts

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
## useAsyncEffect2 :snowflake:
88

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.
1212

1313
The library is designed to make it as easy as possible to use complex and composite asynchronous routines
1414
in React components. It works on top of a [custom cancellable promise](https://www.npmjs.com/package/c-promise2),

0 commit comments

Comments
 (0)