tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/128-how-much-work-should-a-mediator-doRobotlegs: Discussion 2018-10-18T16:35:11Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/14783332010-04-17T05:58:05Z2010-04-17T05:58:05ZHow much work should a mediator do?<div><p>I approach it much the same way you do with the mediator being a
"switch board" for communication. Many people feel that the
mediator should hold any logic the view component might need. I
think that view components should be self-contained and not quite
as stupid. They should be stupid regarding knowledge of siblings
and the greater application, but I think that leveraging Flex
within view components and allowing them to manage their basic
state is OK.</p>
<p>I don't see a problem with either approach as long as you are
consistant within your application.</p></div>Joel Hookstag:robotlegs.tenderapp.com,2009-10-18:Comment/14783332010-04-17T06:09:53Z2010-04-17T06:09:53ZHow much work should a mediator do?<div><p>Yes I think consistency is the key then. If you are going to put
component logic in the mediator then the component should really
only consist of event dispatches and be as simple as possible.
Otherwise it can be unclear where state changes actually
happen.</p></div>rob