Closed
Description
Currently useAsync is defined as useAsync<T extends {}>
which means it cannot be null or undefined when using ts strict mode.
Example: https://codesandbox.io/s/react-typescript-9x4j1
This makes it impossible to use promise which returns SomeData | null
Metadata
Metadata
Assignees
Labels
No labels