Add missing attempts++ in ShadowNode with MAX_COMMIT_ATTEMPTS_BEFORE_LOCKING (#52673)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
Nicola Corti authored and Facebook GitHub Bot committed 2025-07-17 09:02:19 -07:00
1 parent 2a01eadcb8
commit 847721dc9b
1 file changed
+1
@@ -251,6 +251,7 @@ CommitStatus ShadowTree::commit(
if (status != CommitStatus::Failed) {
return status;
}
attempts++;
}
{