Skip to content

Impossible to set timeout globally #68

Description

@t-sakharova-levi9-com

I want to set timeout for all requests, so I use httpConfig

const httpAdapter = new HttpAdapter({
  httpConfig: {
    timeout: 3000
  }
})

But this doesn't work, maybe because of this line?
https://github.com/js-data/js-data-http/blob/master/src/index.js#L775

I can pass config to all methods (create, update, etc) and it works, but I want to do it in one place

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions