|
|
@@ -162,11 +162,13 @@ export default (options={}) => { |
|
|
|
console.warn('The response range is narrower than requested, probably due to an upstream hard limit.') |
|
|
|
|
|
|
|
// clean model state |
|
|
|
_promise = null |
|
|
|
this.reset() |
|
|
|
|
|
|
|
// return data |
|
|
|
return _cache.data.slice(_begin, _end + 1) |
|
|
|
}).finally(() => { |
|
|
|
// clean model state |
|
|
|
_promise = null |
|
|
|
}) |
|
|
|
|
|
|
|
return _promise |
|
|
@@ -205,6 +207,9 @@ export default (options={}) => { |
|
|
|
// clean state |
|
|
|
_promise = null |
|
|
|
this.reset() |
|
|
|
}).finally(() => { |
|
|
|
// clean state |
|
|
|
_promise = null |
|
|
|
}) |
|
|
|
|
|
|
|
return _promise |
|
|
|