Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to set timeout globally #68

Open
t-sakharova opened this issue May 8, 2017 · 0 comments
Open

Impossible to set timeout globally #68

t-sakharova opened this issue May 8, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@t-sakharova
Copy link

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

@jmdobry jmdobry added the bug label Jul 2, 2017
@jmdobry jmdobry self-assigned this Jul 2, 2017
@jmdobry jmdobry added the v3 label Jul 2, 2017
@jmdobry jmdobry added this to the 3.0 milestone Jul 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants