mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix memory based performance problem caused by use of lodash memoize in box component (#19993)
This commit is contained in:
parent
5529c5963e
commit
f145331665
@ -130,7 +130,7 @@ const generateClassNames = memoize(
|
|||||||
}
|
}
|
||||||
return classNamesObject;
|
return classNamesObject;
|
||||||
},
|
},
|
||||||
(styleDeclaration, value) => [styleDeclaration, value],
|
(styleDeclaration, value) => `${styleDeclaration}${value}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
export const Box: BoxComponent = React.forwardRef(
|
export const Box: BoxComponent = React.forwardRef(
|
||||||
|
@ -184,7 +184,7 @@ const generateClassNames = memoize(
|
|||||||
}
|
}
|
||||||
return classesObject;
|
return classesObject;
|
||||||
},
|
},
|
||||||
(type, value) => [type, value],
|
(type, value) => `${type}${value}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user