Skip to content

Commit

Permalink
Add missing post.slug dependency to useMemo (WordPress#66125)
Browse files Browse the repository at this point in the history
- Add missing `post.slug` dependency to `useMemo`

Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored and karthick-murugan committed Nov 13, 2024
1 parent 9acc419 commit 7b9b4ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const ExperimentalEditorProvider = withRegistryProvider(
shouldRenderTemplate,
post.id,
post.type,
post.slug,
rootLevelPost.type,
rootLevelPost.slug,
postTypes,
Expand Down

0 comments on commit 7b9b4ab

Please sign in to comment.