stub onurlchange reducer

This commit is contained in:
Colin Megill
2017-10-11 00:03:19 -07:00
parent e5b8d473d6
commit de98b8d9f0
+25
View File
@@ -0,0 +1,25 @@
import URI from "urijs";
/*
https://www.npmjs.com/package/url-parse
*/
const onURLchange = (
state = {},
action
) => {
switch (action.type) {
case 'url changed': {
const {url} = action;
const parsed = URI.parseQuery(window.location.search);
console.log("onURLchange sees: ", parsed)
return state;
}
}
return state;
}
export default onURLchange;