From 675c8335192c1c89c31a9853b61c7dcaa81db1df Mon Sep 17 00:00:00 2001 From: Hasan Genc Date: Fri, 19 Jun 2020 08:42:42 +0300 Subject: [PATCH] Remove react memo usage. --- src/components/item/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/item/index.tsx b/src/components/item/index.tsx index 95968b3..d09e7a8 100644 --- a/src/components/item/index.tsx +++ b/src/components/item/index.tsx @@ -10,7 +10,7 @@ import { getPageX } from '../../helpers'; import { useWindowWidthChange } from '../../hooks'; import styles from '../../styles/styles.module.css'; -export const ItemProviderBase: FunctionComponent = ( +export const ItemProvider: FunctionComponent = ( props: ItemProviderProps, ) => { const [width, setWidth] = useState(200); @@ -116,7 +116,6 @@ export const ItemProviderBase: FunctionComponent = ( ); }; -export const ItemProvider = React.memo(ItemProviderBase); export interface ItemProviderProps { items: Item[]; show: number;