1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Fix memory based performance problem caused by use of lodash memoize in box component (#19993)

This commit is contained in:
Dan J Miller 2023-07-13 12:23:10 -02:30
parent 5529c5963e
commit f145331665
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ const generateClassNames = memoize(
}
return classNamesObject;
},
(styleDeclaration, value) => [styleDeclaration, value],
(styleDeclaration, value) => `${styleDeclaration}${value}`,
);
export const Box: BoxComponent = React.forwardRef(

View File

@ -184,7 +184,7 @@ const generateClassNames = memoize(
}
return classesObject;
},
(type, value) => [type, value],
(type, value) => `${type}${value}`,
);
/**