chore: remove the memo compare function

This commit is contained in:
MrWindlike 2022-05-17 10:47:20 +08:00
parent 7c463749e7
commit 98e38c387e

View File

@ -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)
);