Files
react-native/ReactCommon
Joshua Gross 183b1c13c4 Always create new State object from latest
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
2020-01-23 15:21:09 -08:00
..
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2019-10-16 10:06:34 -07:00
2020-01-21 02:32:50 -08:00