Skip to content

Commit 847721d

Browse files
cortinicofacebook-github-bot
authored andcommitted
Add missing attempts++ in ShadowNode with MAX_COMMIT_ATTEMPTS_BEFORE_LOCKING (#52673)
Summary: Pull Request resolved: #52673 We should be incrementing the `attempts` variable as otherwise this loop with never stop. Created from CodeHub with https://fburl.com/edit-in-codehub Changelog: [Internal] - Reviewed By: rubennorte Differential Revision: D78487202 fbshipit-source-id: 91d7f5d88a90bdfa806195fd35897f2f51c1deb9
1 parent 2a01ead commit 847721d

File tree

1 file changed

+1
-0
lines changed
  • packages/react-native/ReactCommon/react/renderer/mounting

1 file changed

+1
-0
lines changed

packages/react-native/ReactCommon/react/renderer/mounting/ShadowTree.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ CommitStatus ShadowTree::commit(
251251
if (status != CommitStatus::Failed) {
252252
return status;
253253
}
254+
attempts++;
254255
}
255256

256257
{

0 commit comments

Comments
 (0)