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:
parent
0981509e82
commit
16481268cc
@ -130,7 +130,7 @@ const generateClassNames = memoize(
|
||||
}
|
||||
return classNamesObject;
|
||||
},
|
||||
(styleDeclaration, value) => [styleDeclaration, value],
|
||||
(styleDeclaration, value) => `${styleDeclaration}${value}`,
|
||||
);
|
||||
|
||||
export const Box: BoxComponent = React.forwardRef(
|
||||
|
@ -184,7 +184,7 @@ const generateClassNames = memoize(
|
||||
}
|
||||
return classesObject;
|
||||
},
|
||||
(type, value) => [type, value],
|
||||
(type, value) => `${type}${value}`,
|
||||
);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user