Skip to content

Commit

Permalink
don't use useMemo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Canales authored and madhusudhand committed Jan 23, 2024
1 parent 5ec0ca4 commit 4220d9f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/block-editor/src/hooks/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import { hasBlockSupport } from '@wordpress/blocks';
import { useSelect } from '@wordpress/data';
import { useMemo } from '@wordpress/element';
/**
* Internal dependencies
*/
Expand Down Expand Up @@ -35,12 +34,7 @@ export function EffectsPanel( { clientId, setAttributes, settings } ) {
[ clientId ]
);
const shadow = blockAttributes?.style?.shadow;
const value = useMemo(
() => ( {
shadow,
} ),
[ shadow ]
);
const value = { shadow };

const onChange = ( newValue ) => {
setAttributes( {
Expand Down

0 comments on commit 4220d9f

Please sign in to comment.