Skip to content

Commit

Permalink
[docs] Clarify wording on sub-tree reconciliation
Browse files Browse the repository at this point in the history
The previous wording could be interpreted to mean sub-trees moving from
within one sibling to within another, rather than the shuffling of siblings on
a single level as intended
  • Loading branch information
glenjamin committed Sep 18, 2014
1 parent 21f6019 commit cf512bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/ref-08-reconciliation.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ In practice, finding a key is not really hard. Most of the time, the element you

It is important to remember that the reconciliation algorithm is an implementation detail. React could re-render the whole app on every action, the end-result would be the same. We are regularly refining the heuristics in order to make common use cases faster.

In the current implementation, you can express the fact that a sub-tree has been moved between siblings, but you cannot tell that it has moved somewhere else. The algorithm will re-render that full sub-tree.
In the current implementation, you can express the fact that a sub-tree has been moved amongst its siblings, but you cannot tell that it has moved somewhere else. The algorithm will re-render that full sub-tree.

Because we rely on two heuristics, if the assumptions behind them are not met, performance will suffer.

Expand Down

0 comments on commit cf512bf

Please sign in to comment.