Skip to content
Prev Previous commit
Next Next commit
Ditch Lodash for Fast Deep Equal
  • Loading branch information
getdave committed Dec 6, 2022
commit f4bfc534c573f88cc47d6a71f476431905dd13f4
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { isEqual } from 'lodash';
import fastDeepEqual from 'fast-deep-equal/es6';

/**
* WordPress dependencies
Expand Down Expand Up @@ -85,7 +85,7 @@ export default function UnsavedInnerBlocks( {
...currentPageListBlockWithoutInnerBlocks
} = currentPageListBlock;

innerBlocksAreDirty = ! isEqual(
innerBlocksAreDirty = ! fastDeepEqual(
originalPageListBlockWithoutInnerBlocks,
currentPageListBlockWithoutInnerBlocks
);
Expand Down