From 2f96977646d958019ff85e75f463b6068b9b93d1 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 16 Dec 2017 00:10:58 +0000 Subject: [PATCH] Store fetching: fix the return record to include the error and fetching status. --- src/store.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store.tsx b/src/store.tsx index 28b3157..89d5226 100644 --- a/src/store.tsx +++ b/src/store.tsx @@ -29,6 +29,8 @@ type FetchType = FetchTypeInterface; function fetchTypeRecord() { return Record>({ value: null as T | null, + error: undefined, + fetching: undefined, }); }