canjs
component!
can-route
and can-route-pushstate
in my canjs 4 app working perfectly, however, I am trying to run a tracking function when the route changes. I tried to track the variables on the main viewModel, but the tracking changes multiple times when you change the route with multiple variables (page, slug, and target). Is there a way to track any route changes and only fire it once? I have tried many things.