dillon1000/react

Commit

Use concurrent root in RTR (#28498)

Based on
- https://github.com/facebook/react/pull/28497
- https://github.com/facebook/react/pull/28419

Reusing the disableLegacyMode flag, we set ReactTestRenderer to always
render with concurrent root where legacy APIs are no longer available.
If disableLegacyMode is false, we continue to allow the
unstable_isConcurrent option determine the root type.

Also checking a global `IS_REACT_NATIVE_TEST_ENVIRONMENT` so we can
maintain the existing behavior for RN until we remove legacy root
support there.
Browse files
Changed paths8 files
First-parent comparison
M packages/react-reconciler/src/__tests__/ErrorBoundaryReconciliation-test.internal.js ModifiedM packages/react-reconciler/src/__tests__/ReactLazy-test.internal.js ModifiedM packages/react-test-renderer/src/ReactTestRenderer.js ModifiedM packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.internal.js ModifiedM packages/react-test-renderer/src/__tests__/ReactTestRenderer-test.js ModifiedM packages/react-test-renderer/src/__tests__/ReactTestRendererAct-test.js ModifiedM packages/react-test-renderer/src/__tests__/ReactTestRendererTraversal-test.js ModifiedM packages/react/src/__tests__/ReactProfilerDevToolsIntegration-test.internal.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…