Skip to content

[Types] ReactQueryProviderConfig doesn't pass provided error type to onError callback #718

@SinanBaymammadli

Description

@SinanBaymammadli

ReactQueryProviderConfig doesn't pass provided error type to onError callback

Expected behavior
const config: ReactQueryProviderConfig<IError> = { queries: { onError: (error) => { // error is type Error not IError }, }, };
Screen Shot 2020-07-08 at 16 39 23

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions