This commit is contained in:
Jori Lallo
2017-10-21 19:39:13 -07:00
parent 30bb7bcde5
commit 0514090253
2 changed files with 0 additions and 11 deletions

View File

@@ -116,11 +116,6 @@ class DocumentsStore extends BaseStore {
};
@action fetch = async (id: string, prefetch?: boolean): Promise<*> => {
/** If document has been fetched under 5s ago, return it */
const existingDocument = this.getById(id);
if (existingDocument && existingDocument.timeSinceFetch < 5)
return existingDocument;
if (!prefetch) this.isFetching = true;
try {