summaryrefslogtreecommitdiff
path: root/frontend/src/redux/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/redux/app.js')
-rw-r--r--frontend/src/redux/app.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/frontend/src/redux/app.js b/frontend/src/redux/app.js
new file mode 100644
index 00000000..172dc960
--- /dev/null
+++ b/frontend/src/redux/app.js
@@ -0,0 +1,15 @@
+export const makeSelectLocationState = () => {
+ let prevRoutingState;
+ let prevRoutingStateJS;
+
+ return (state) => {
+ const routingState = state.get('routing')
+
+ if (!routingState.equals(prevRoutingState)) {
+ prevRoutingState = routingState
+ prevRoutingStateJS = routingState.toJS()
+ }
+
+ return prevRoutingStateJS;
+ }
+}
bgstack15