({ history })
| 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 | }; |
| 118 | export default GlobalModel; |
nothing calls this directly
no outgoing calls
no test coverage detected