mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
183b1c13c4
Summary: Since we're using `tryCommit`, there could be races between two updates to state attached to the same node, especially if a ComponentDescriptor's `createState` implementation uses previous state data to create the new state object. By creating the State object from the "old" node within the tryCommit lambda, we prevent races. Changelog: [Internal] Reviewed By: shergin Differential Revision: D19542908 fbshipit-source-id: 787e4aefc573adf1fa308a6fa859123976a823e7