summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamran Ahmed <kamranahmed.se@gmail.com>2018-08-29 22:29:31 +0500
committerKamran Ahmed <kamranahmed.se@gmail.com>2018-08-29 22:29:31 +0500
commite309a2bb8c8433d5b18dc38af4a2bb6dcf8dc18d (patch)
tree5882a3a1f11e36e42afe9605a8a63fea4449b177
parentDate filter fix (diff)
downloadgithunt-e309a2bb8c8433d5b18dc38af4a2bb6dcf8dc18d.tar.gz
Blacklist processing and errors in while persisting
-rw-r--r--src/redux/github/transform.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/redux/github/transform.js b/src/redux/github/transform.js
index 0602907..ffae7f8 100644
--- a/src/redux/github/transform.js
+++ b/src/redux/github/transform.js
@@ -25,6 +25,14 @@ const GithubTransform = createTransform(
};
}
+ // Do not persist `processing` flag or `error` information,
+ // as we want to start fresh on reload in such cases
+ inboundState = {
+ ...inboundState,
+ processing: false,
+ error: null
+ };
+
return inboundState;
},
// transform state being rehydrated