From 98e8a2bab6807183a09db54e4beb33bab35907df Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 24 Dec 2024 14:36:53 +0100 Subject: [PATCH] Add comment --- packages/editor/src/components/provider/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/editor/src/components/provider/index.js b/packages/editor/src/components/provider/index.js index 5005b7521571ba..abdab284cfd138 100644 --- a/packages/editor/src/components/provider/index.js +++ b/packages/editor/src/components/provider/index.js @@ -300,6 +300,10 @@ export const ExperimentalEditorProvider = withRegistryProvider( } ); } + + // The dependencies of the hook are omitted deliberately + // We only want to run setupEditor (with initialEdits) only once per post. + // A better solution in the future would be to split this effect into multiple ones. }, [] ); // Synchronizes the active post with the state