useFetch() issue: error as unknown
r-i-c-h opened this issue · comments
Rich Werden commented
What cheatsheet is this about? (if applicable)
Basic cheatsheet
What's your issue or idea?
The useFetch
hook as listed on the cheatsheet has an issue where the catch(error){}
is unhappy because within the catch clause, it is of type unknown
.
(If applicable) Reproduction of issue in TypeScript Playground
Yes