From 15d9c8dc9d31cabf1456a29fe20e0b5d4abc2b0b Mon Sep 17 00:00:00 2001 From: Bing Sun Date: Mon, 27 Apr 2020 22:27:10 +0800 Subject: [PATCH] make_model: add TODO on xhr cancelling and re-requesting --- src/util/make_model.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/make_model.js b/src/util/make_model.js index 77d6fb0..98a8232 100644 --- a/src/util/make_model.js +++ b/src/util/make_model.js @@ -96,6 +96,11 @@ export default (options={}) => { if (_promise != null) return _promise + // TODO + // ambient = select + order + limit/offset + // if ambient is changed, cancel currently loading xhr; otherwise return + // current promise + // now the hard work _promise = _configs.api.request({ method: 'GET',