I’d like to get some design feedback. We need to implement a timeout checker on our app so that if they do something after the timeout, we can redirect them to the login page. I was trying to find the best place to run a small snippet of JS on every “action” - route transition, action, etc. It doesn’t need to happen on mouseup/down/move, just every time somebody does something real.
I was thinking of just putting some default code in Ember.View’s didInsertElement or similar, but that seems hacky. I looked at Ember.run.schedule(), but that only seemed to run once. I was hoping that might run something every time the Run Loop runs.
Any ideas on where best to place this would be most appreciated!