Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 24, 2024
1 parent 994ade0 commit 98e8a2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98e8a2b

Please sign in to comment.