From 1a65d036ef057b07a6b15f5604e399f91bc5ed73 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Thu, 16 Nov 2023 17:42:03 -0500 Subject: [PATCH] [cleanup] remove enableHostSingletons feature flag (#27583) The flag is enabled everywhere, I think we can remove it now. --- .../src/client/ReactDOMComponent.js | 8 +-- .../src/client/ReactDOMComponentTree.js | 10 +-- .../src/client/ReactFiberConfigDOM.js | 53 +++++---------- .../src/events/DOMPluginEventSystem.js | 15 ++--- .../events/plugins/EnterLeaveEventPlugin.js | 5 +- .../src/__tests__/ReactDOMFloat-test.js | 57 +--------------- .../src/__tests__/ReactDOMRoot-test.js | 2 +- .../ReactDOMSingletonComponents-test.js | 18 +---- .../src/__tests__/ReactMount-test.js | 13 +--- .../src/__tests__/ReactRenderDocument-test.js | 26 ------- .../src/__tests__/validateDOMNesting-test.js | 67 +++++-------------- .../react-dom/src/client/ReactDOMLegacy.js | 16 ----- packages/react-dom/src/client/ReactDOMRoot.js | 36 ---------- .../src/test-utils/ReactTestUtils.js | 10 +-- packages/react-reconciler/src/ReactFiber.js | 10 +-- .../src/ReactFiberBeginWork.js | 3 +- .../src/ReactFiberCommitWork.js | 25 +++---- .../src/ReactFiberCompleteWork.js | 7 +- .../src/ReactFiberHotReloading.js | 6 +- .../src/ReactFiberHydrationContext.js | 9 +-- .../src/ReactFiberTreeReflection.js | 6 +- packages/shared/ReactFeatureFlags.js | 2 - .../forks/ReactFeatureFlags.native-fb.js | 1 - .../forks/ReactFeatureFlags.native-oss.js | 1 - .../forks/ReactFeatureFlags.test-renderer.js | 1 - .../ReactFeatureFlags.test-renderer.native.js | 1 - .../ReactFeatureFlags.test-renderer.www.js | 1 - .../shared/forks/ReactFeatureFlags.www.js | 1 - 28 files changed, 82 insertions(+), 328 deletions(-) diff --git a/packages/react-dom-bindings/src/client/ReactDOMComponent.js b/packages/react-dom-bindings/src/client/ReactDOMComponent.js index edfb945c35fe9..a94c990733915 100644 --- a/packages/react-dom-bindings/src/client/ReactDOMComponent.js +++ b/packages/react-dom-bindings/src/client/ReactDOMComponent.js @@ -69,7 +69,6 @@ import { enableCustomElementPropertySupport, enableClientRenderFallbackOnTextMismatch, enableFormActions, - enableHostSingletons, disableIEWorkarounds, enableTrustedTypesIntegration, enableFilterEmptyStringAttributesDOM, @@ -394,8 +393,7 @@ function setProp( // show within the