Skip to content

Impossible to set timeout globally #68

Open
@t-sakharova

Description

@t-sakharova

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions