Skip to content

samit4me/react-async-ts-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

In a nutshell, both of the following usages of useAsync are throwing TypeScript errors, see src/User.tsx for further details.

const { data, error, isPending } = useAsync(dataFetching, { id: 1 });

const { data, error, isPending } = useAsync({ promiseFn: dataFetching, id: 1 });

This project was bootstrapped with Create React App.

yarn start

About

Demo typing issue with react-async and typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published