mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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;
|
||||
},
|
||||
(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