From f0b536f9f5e7fd52964de68944271a5cc9b972a7 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Date: Thu, 15 Dec 2022 14:55:01 +0200 Subject: [PATCH] Post Editor: Disable React strict mode --- packages/edit-post/src/editor.js | 42 +++++++++++++++----------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/packages/edit-post/src/editor.js b/packages/edit-post/src/editor.js index 9c0a4880344897..f6945a7fc74828 100644 --- a/packages/edit-post/src/editor.js +++ b/packages/edit-post/src/editor.js @@ -14,7 +14,7 @@ import { PostLockedModal, store as editorStore, } from '@wordpress/editor'; -import { StrictMode, useMemo } from '@wordpress/element'; +import { useMemo } from '@wordpress/element'; import { SlotFillProvider } from '@wordpress/components'; import { store as coreStore } from '@wordpress/core-data'; import { ShortcutProvider } from '@wordpress/keyboard-shortcuts'; @@ -182,28 +182,24 @@ function Editor( { } return ( - - - - - - - - - - - - - + + + + + + + + + + + ); }