@@ -4,8 +4,9 @@ import { cloneDeep, merge } from 'lodash-es';
44import type { UseOverlayScrollbarsParams } from 'overlayscrollbars-react' ;
55import { useOverlayScrollbars } from 'overlayscrollbars-react' ;
66import type { PropsWithChildren } from 'react' ;
7- import { memo , useEffect , useRef , useState } from 'react' ;
7+ import { useEffect , useRef , useState } from 'react' ;
88
9+ import { typedMemo } from '../../util' ;
910import { Box } from '../box' ;
1011import { overlayScrollbarsParams } from '../shared/overlayscrollbars' ;
1112import type { ComboboxOption } from './custom-option' ;
@@ -18,7 +19,7 @@ const overlayScrollbarsParamsOverrides: Partial<UseOverlayScrollbarsParams> = {
1819
1920const osParams = merge ( cloneDeep ( overlayScrollbarsParams ) , overlayScrollbarsParamsOverrides ) ;
2021
21- const Scrollable = memo ( ( props : PropsWithChildren < { viewport : HTMLDivElement | null } > ) => {
22+ const Scrollable = typedMemo ( ( props : PropsWithChildren < { viewport : HTMLDivElement | null } > ) => {
2223 const { children, viewport } = props ;
2324
2425 const targetRef = useRef < HTMLDivElement > ( null ) ;
@@ -45,7 +46,7 @@ const Scrollable = memo((props: PropsWithChildren<{ viewport: HTMLDivElement | n
4546
4647Scrollable . displayName = 'Scrollable' ;
4748
48- export const CustomMenuListComponent = memo ( ( { children, innerRef, ...other } : CustomMenuListProps ) => {
49+ export const CustomMenuListComponent = typedMemo ( ( { children, innerRef, ...other } : CustomMenuListProps ) => {
4950 const [ viewport , setViewport ] = useState < HTMLDivElement | null > ( null ) ;
5051
5152 useEffect ( ( ) => {
0 commit comments