Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit ff9592e

Browse files
committed
enable pull-to-refresh logic
1 parent 026708d commit ff9592e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/getCachedSobj.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ import storage from './storage';
3131
module.exports = (opts) => {
3232
return new Promise(
3333
(resolve, reject) => {
34+
35+
if(opts.noCache){
36+
resolve(opts);
37+
return;
38+
}
39+
3440
const id = opts.id;
3541
const item = cache.get(id);
3642
if(item){

0 commit comments

Comments
 (0)