Netflix / falcor

A JavaScript library for efficient data fetching

Home Page:http://netflix.github.io/falcor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to set the request time out limit ?

jeffreyzhiw opened this issue · comments

i found when one request takes more than 15s wating for response, it will be canceled and return error messages. so how to handle this proplem? is there any way to overwrite the request time out settings ?
thx a lot :)

OK i got the solution. :)

const model = new falcor.Model({
source: new falcor.HttpDataSource('/model.json', {
timeout: 0,
}),
}).batch();

the second parameter contains the timeout limit.