We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3f683 commit dd1158fCopy full SHA for dd1158f
packages/x-data-grid/src/internals/utils/useProps.ts
@@ -32,8 +32,5 @@ function groupForwardedProps<
32
}
33
34
export function useProps<T extends Record<string, any>>(allProps: T) {
35
- return React.useMemo(() => {
36
- const { ...themedProps } = allProps;
37
- return groupForwardedProps(themedProps);
38
- }, [allProps]);
+ return React.useMemo(() => groupForwardedProps(allProps), [allProps]);
39
0 commit comments