Skip to content

Commit 081f7d1

Browse files
sherginfacebook-github-bot
authored andcommitted
RCTSurface: Fixed problem in stage propagation
Summary: We previously incorrectly communicated to the delegate changed fragment instead of compound value. Reviewed By: rsnara Differential Revision: D6367070 fbshipit-source-id: 373a7c14a79a4727a7e8f61178dea3ca16ea1f40
1 parent 11a2a35 commit 081f7d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

React/Base/Surface/RCTSurface.mm

+4-2
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,19 @@ - (RCTSurfaceStage)stage
211211

212212
- (void)_setStage:(RCTSurfaceStage)stage
213213
{
214+
RCTSurfaceStage updatedStage;
214215
{
215216
std::lock_guard<std::mutex> lock(_mutex);
216217

217218
if (_stage & stage) {
218219
return;
219220
}
220221

221-
_stage = (RCTSurfaceStage)(_stage | stage);
222+
updatedStage = (RCTSurfaceStage)(_stage | stage);
223+
_stage = updatedStage;
222224
}
223225

224-
[self _propagateStageChange:stage];
226+
[self _propagateStageChange:updatedStage];
225227
}
226228

227229
- (void)_propagateStageChange:(RCTSurfaceStage)stage

0 commit comments

Comments
 (0)