tag:robotlegs.tenderapp.com,2009-10-18:/discussions/solutions/14-states-mediators-signalsRobotlegs: Discussion 2018-10-18T16:35:29Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/85352922011-07-11T16:38:12Z2011-07-11T16:38:15ZStates, Mediators & Signals<div><p>I saw a few discussions on this but so I thought I would just
post for my solution (obvious in hindsight).</p>
<p>You have an application with states, you mediate view components
in each state and within that mediation you add signal dispatch
method handlers in the onRegister - flipping between states causes
a build up method handlers i.e. you see the same methods being
called multiple times.</p>
<p>The solution for me was to use the onRemove method of the
mediator to remove the method handlers from the signal.</p></div>Mark Barton