mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-28 12:28:12 +08:00
stub onurlchange reducer
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user