Skip to content

Passing in globalOptions timeout has no effect #107

@JanStevens

Description

@JanStevens

Hi,

When trying to build my react query client in the following way

export const apiClientV2 = createTuyauReactQueryClient({
  client,
  globalOptions: { timeout: 30_000 },
})

I would expect all my requests now have a timeout of 30_000 but when trying this out everything gets cancelled after 10 seconds which is the ky default.

The typings seem to indicate you can configure it like that.

Regards

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