Skip to content

Commit

Permalink
Explain passing custom clientIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Dec 14, 2022
1 parent 497d5dc commit 772aad9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const MenuInspectorControls = ( {
/* translators: %s: The name of a menu. */
const actionLabel = __( "Switch to '%s'" );

// Provide a hierarchy of clientIds for the given Navigation block (clientId).
// This is required else the list view will display the entire block tree.
const clientIdsTree = useSelect(
( select ) => {
const { __unstableGetClientIdsTree } = select( blockEditorStore );
Expand Down

0 comments on commit 772aad9

Please sign in to comment.