registerComponentTree method

void registerComponentTree(
  1. Component component,
  2. Morphic tree
)

Implementation

void registerComponentTree(Component component, Morphic tree) {
  // Always update — putIfAbsent would leave child components with a stale
  // prevTree after a parent morph, causing the next requestUpdateFor to
  // diff against the wrong snapshot.
  _componentTrees[component] = tree;
}