File tree Expand file tree Collapse file tree
packages/block-editor/src/components/block-list Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import { useSelect, useDispatch } from '@wordpress/data';
2626import { isInsideRootBlock } from '../../utils/dom' ;
2727import useMovingAnimation from './moving-animation' ;
2828import { Context , BlockNodes } from './root-container' ;
29- import { BlockContext } from './block' ;
29+ import { BlockListBlockContext } from './block' ;
3030import ELEMENTS from './block-elements' ;
3131
3232const BlockComponent = forwardRef (
@@ -50,7 +50,7 @@ const BlockComponent = forwardRef(
5050 mode,
5151 blockTitle,
5252 wrapperProps,
53- } = useContext ( BlockContext ) ;
53+ } = useContext ( BlockListBlockContext ) ;
5454 const { initialPosition } = useSelect (
5555 ( select ) => {
5656 if ( ! isSelected ) {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import BlockCrashBoundary from './block-crash-boundary';
3131import BlockHtml from './block-html' ;
3232import { Block } from './block-wrapper' ;
3333
34- export const BlockContext = createContext ( ) ;
34+ export const BlockListBlockContext = createContext ( ) ;
3535
3636function BlockListBlock ( {
3737 mode,
@@ -167,7 +167,7 @@ function BlockListBlock( {
167167 const memoizedValue = useMemo ( ( ) => value , Object . values ( value ) ) ;
168168
169169 return (
170- < BlockContext . Provider value = { memoizedValue } >
170+ < BlockListBlockContext . Provider value = { memoizedValue } >
171171 < BlockCrashBoundary onError = { onBlockError } >
172172 { isValid && lightBlockWrapper && (
173173 < >
@@ -199,7 +199,7 @@ function BlockListBlock( {
199199 < BlockCrashWarning />
200200 </ Block . div >
201201 ) }
202- </ BlockContext . Provider >
202+ </ BlockListBlockContext . Provider >
203203 ) ;
204204}
205205
You can’t perform that action at this time.
0 commit comments