Skip to content

get error code from "error" #20

@EkaterinaMozheiko

Description

@EkaterinaMozheiko

Hi,

is there any way to get an error code from error variable (result of useAsync hook)? It seems that the only way to do it is to parse message string. I think it should be the "code" property in Error type (along with "name" and "message" whish exist already)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions