MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / setup

Function setup

src/models/global.js:108–115  ·  view source on GitHub ↗
({ history })

Source from the content-addressed store, hash-verified

106 },
107 subscriptions: {
108 setup({ history }) {
109 // Subscribe history(url) change, trigger `load` action if pathname is `/`
110 history.listen(({ pathname, search }) => {
111 if (typeof window.ga !== 'undefined') {
112 window.ga('send', 'pageview', pathname + search);
113 }
114 });
115 },
116 },
117};
118export default GlobalModel;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected