dillon1000/react
Commit
Browse files Set isInTransaction to false even if close throws
If a transaction wrapper's closer throws (such as flushBatchedUpdates in ReactDefaultBatchingStrategy) then we still want to properly deinitialize the transaction by setting isInTransaction to false. Without this, we can't reuse the transaction object (in this case, all future batched updates would fail because nested transactions aren't allowed).
Changed paths2 files
First-parent comparisonsrc/utils/Transaction.js ModifiedM src/utils/__tests__/Transaction-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…