summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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