Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
generateblocks
/
src
/
utils
/
should-rebuild-css
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import { isEqual } from 'lodash'; function compareAttributes( prevAttributes, nextAttributes ) { return Object.keys( prevAttributes ).every( ( key ) => { return isEqual( prevAttributes[ key ], nextAttributes[ key ] ); } ); } export default function shouldRebuildCSS( prevProps, nextProps ) { return ( prevProps.deviceType === nextProps.deviceType && prevProps.clientId === nextProps.clientId && compareAttributes( prevProps.attributes, nextProps.attributes ) ); }