dillon1000/react

Commit

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).
Browse files
Changed paths2 files
First-parent comparison
M src/utils/Transaction.js ModifiedM src/utils/__tests__/Transaction-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…