mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
0332d475cc
Summary: Motivation: * We never should call `markDirtyAndPropogate()` during tree construction/mutation because it might affect trees in different thread/dimentions; * In Fabric we basically always have to dirty nodes ourselves manually duting tree construction; * In Fabric we don't have "scoped/limited" tree mutations which require recursive dirtying; any mutation is creation of the new tree instance; * Default value of the `isDirty` flag is "false", so we have to change this right after creation of Yoga node (and after cloning). Reviewed By: mdvacca Differential Revision: D7467797 fbshipit-source-id: 2c9144271dceea6ba2b95173209b99b5d86fbd87