Skip to content

Commit

Permalink
Add note as inline comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jan 27, 2025
1 parent c898a6a commit 8ab183c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/editor/src/components/start-page-options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export default function StartPageOptions() {
category: 'core/starter-content',
} );
}

// Note: The `postId` ensures the effect re-runs when pages are switched without remounting the component.
// Examples: changing pages in the List View, creating a new page via Command Palette.
}, [
postId,
enabled,
Expand Down

0 comments on commit 8ab183c

Please sign in to comment.