Files
ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/modern/hooks/utils/useGridApi.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

13 lines
435 B
JavaScript

import { buildWarning } from '../../utils/warning';
const deprecationWarning = buildWarning(['MUI: The hook useGridApi is deprecated and will be removed in the next major version.', 'Access the ref content with apiRef.current instead']);
/**
* @deprecated Use `apiRef.current` instead.
*/
export const useGridApi = apiRef => {
if (process.env.NODE_ENV !== 'production') {
deprecationWarning();
}
return apiRef.current;
};