mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-12 21:50:23 +08:00
chore: remove the memo compare function
This commit is contained in:
parent
7c463749e7
commit
98e38c387e
@ -178,9 +178,5 @@ const ComponentTree = (props: ComponentTreeProps) => {
|
||||
};
|
||||
|
||||
export const ComponentTreeWrapper: React.FC<Props> = observeSelected(
|
||||
React.memo(ComponentTree, (prevProps, nextProps) => {
|
||||
return (Object.keys(prevProps) as (keyof typeof prevProps)[]).every(
|
||||
key => prevProps[key] === nextProps[key]
|
||||
);
|
||||
})
|
||||
React.memo(ComponentTree)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user