diff --git a/packages/grid/x-data-grid/src/hooks/utils/useLazyRef.ts b/packages/grid/x-data-grid/src/hooks/utils/useLazyRef.ts index 1adcde01a3e68..2818c1745cbe2 100644 --- a/packages/grid/x-data-grid/src/hooks/utils/useLazyRef.ts +++ b/packages/grid/x-data-grid/src/hooks/utils/useLazyRef.ts @@ -2,6 +2,7 @@ import * as React from 'react'; const UNINITIALIZED = {}; +// See https://github.com/facebook/react/issues/14490 for when to use this. export function useLazyRef(init: (arg?: U) => T, initArg?: U) { const ref = React.useRef(UNINITIALIZED as unknown as T);