When I toggle back and forth between 2 pages the Attached method is being called on the page that I am leaving. I am using version 2.1.0. So when I navigate from page A to page B , page A's Attached method is called and eventually it's Deactivate is called (Activate on page A is not called again) as well as page B's Activate and Attached appropriately.
I see this happen in the triggerAttach(context, element) method in composition.js. The context.activeView and the context.child at this point end up being the same object and therefore it does remove the ActiveViewAttributeName successfully but then proceeds to call attached on the child, which is the same object.
You have to toggle back and fourth a couple of times to see this happen. Not sure if I am suppose to handle some cleanup that I am not doing?
Is this happening to anyone else?