From a10a9a6b5b891dd3ce238bf39a6147bb0f3a1d2a Mon Sep 17 00:00:00 2001 From: Ricky Date: Tue, 3 May 2022 14:24:23 -0400 Subject: [PATCH] Add test for hiding children after layout destroy (#24483) --- .../src/__tests__/ReactOffscreen-test.js | 41 +++++++++++++++++++ packages/shared/ReactFeatureFlags.js | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js b/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js index 3125fcc29e5f9..13257a82b81b8 100644 --- a/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js +++ b/packages/react-reconciler/src/__tests__/ReactOffscreen-test.js @@ -310,6 +310,47 @@ describe('ReactOffscreen', () => { expect(root).toMatchRenderedOutput(