Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
We have a fairly deep hierarchy of View Components in places. Inside
the Timeline component alone, we can
have a hierarchy of StoryTile, PartTile, ChapterTile, SceneTile, and DraftTile. Do we need a Mediator for each of these components? Do we
need a Mediator for the Timeline instead? Or is it even necessary to
have a Mediator for the Timeline, which itself is only a child of the
Controls component, which is a child of
the Editor? Confusing, right? How much
mediation is too much? Does every button need a Mediator? Well, that depends on how our view
hierarchy is built and how much custom tending each component really
needs. The best approach is to consider your needs from the top down, not
from the bottom up.