mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
bfa00a5d62
Summary: # Problem We calculate `stateRevision_` in constructor from children, but children change after shadowNode is initialised and before it is sealed. So the `stateRevision_` we calculate in constructor can be incorrect. # Solution Recalculate `stateRevision_` whenever children change. This can happen in two methods `ShadowNode::replaceChild` and `ShadowNode::appendChild`. This diff implements this solution. Changelog: [Internal] Reviewed By: JoshuaGross Differential Revision: D19813840 fbshipit-source-id: 8fc3b6601e4618f4ee5b322eebc230e0bbb92e3a