1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01: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 committed by GitHub
parent 0981509e82
commit 16481268cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}`,
);
/**