Skip to content

Commit

Permalink
Move __unstableGetEditorMode to existing select call
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan committed May 7, 2024
1 parent 8bf83c9 commit efa0448
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ import { unlock } from '../../../lock-unlock';
* @return {Array} Returns the patterns state. (patterns, categories, onSelect handler)
*/
const usePatternsState = ( onInsert, rootClientId ) => {
const { __unstableGetEditorMode } = useSelect( blockEditorStore );
const { patternCategories, patterns, userPatternCategories } = useSelect(
( select ) => {
const { __experimentalGetAllowedPatterns, getSettings } =
select( blockEditorStore );
const {
__experimentalGetAllowedPatterns,
getSettings,
__unstableGetEditorMode,
} = select( blockEditorStore );
const {
__experimentalUserPatternCategories,
__experimentalBlockPatternCategories,
Expand Down

0 comments on commit efa0448

Please sign in to comment.