Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy data in updateState instead of moving them
Summary: Changelog: [internal] `UpdateState` lambda can be called multiple times because of state auto-repeater. But previously we moved state data into the lambda and then moved it into constructor shared data constructor. If auto-repeater called update state lambda again, the data would be in invalid state. To fix this, state data has to be copied into shared data constructor. Background executor was more likely to kick trigger state auto-repeater, that's why the crash was happening in BE experiment. State-autorepeater was enabled at the end of December. That explains why the crash started appearing in v301 (prior to 301, this crash was not happening). Reviewed By: JoshuaGross, shergin Differential Revision: D26173800 fbshipit-source-id: 46d1bae226e607d04d5ba28e6c2a8ec86258593a
- Loading branch information