MCPcopy
hub / github.com/sunnylqm/react-native-storage / _noItemFound

Method _noItemFound

storage.js:218–227  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

216 return Promise.resolve(ret.rawData);
217 }
218 _noItemFound(params) {
219 let { key, id, autoSync, syncParams } = params;
220 if(this.sync[key]) {
221 if(autoSync) {
222 return new Promise((resolve, reject) => this.sync[key]({ id, syncParams, resolve, reject }));
223 }
224 return Promise.resolve({ syncId: id });
225 }
226 return Promise.reject(new NotFoundError(JSON.stringify(params)));
227 }
228 _loadMapItem(params) {
229 let { ret, key, id, autoSync, batched, syncInBackground, syncParams } = params;
230 if(ret === null || ret === undefined) {

Callers 2

_loadMapItemMethod · 0.95
_lookUpInMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected