Skip to content

useFetch() issue: error as unknown #487

Closed
@r-i-c-h

Description

@r-i-c-h

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

Metadata

Metadata

Assignees

Labels

BASICBasic Cheatsheethelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions