Skip to content

Commit f68bd55

Browse files
committed
readme typo
1 parent bb941b2 commit f68bd55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ It is your responsability to wire the abort signal appropriately.
176176

177177
```tsx
178178
const StarwarsHero = ({ id }) => {
179-
const asyncHero = useAsync(
179+
const asyncHero = useAsyncAbortable(
180180
async (abortSignal, id) => {
181181
const result = await fetch(`https://swapi.co/api/people/${id}/`, {
182182
signal: abortSignal,

0 commit comments

Comments
 (0)