dillon1000/react

Commit

Use _hostContainerInfo to track test renderer options (#8261)

* Use _hostContainerInfo to track test renderer options

The transaction is not available when unmounting or updating the
instance, so we track it using _hostContainerInfo

* Throw if hostContainerInfo is not populated in getPublicInstance

* Linting fixes

* Remove transaction from ref lifecycle code path

We don't need to pass the transaction around anymore since we store the
test options on _hostContainerInfo instead

* Remove unused argument
Browse files
Changed paths8 files
First-parent comparison
M scripts/fiber/tests-passing.txt ModifiedM src/renderers/shared/stack/reconciler/ReactCompositeComponent.js ModifiedM src/renderers/shared/stack/reconciler/ReactOwner.js ModifiedM src/renderers/shared/stack/reconciler/ReactReconciler.js ModifiedM src/renderers/shared/stack/reconciler/ReactRef.js ModifiedM src/renderers/testing/ReactTestMount.js ModifiedM src/renderers/testing/ReactTestRenderer.js ModifiedM src/renderers/testing/__tests__/ReactTestRenderer-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…