We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf2b239 commit d40bf27Copy full SHA for d40bf27
packages/lib/src/hocs/deepMemo.ts
@@ -1,5 +1,6 @@
1
-import type { FunctionComponent } from "react";
+import { memo, type FunctionComponent } from "react";
2
+import { deepEquals } from "../equals";
3
4
export function deepMemo<P extends object>(Component: FunctionComponent<P>) {
- return Component;
5
+ return memo<P>(Component, deepEquals);
6
}
0 commit comments