paradiego

This commit is contained in:
2024-09-18 13:34:19 -03:00
commit 3f0e204289
12510 changed files with 1486101 additions and 0 deletions

1
node_modules/@mui/utils/esm/useLazyRef/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
export { default } from "./useLazyRef.js";

19
node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
'use client';
import * as React from 'react';
const UNINITIALIZED = {};
/**
* A React.useRef() that is initialized lazily with a function. Note that it accepts an optional
* initialization argument, so the initialization function doesn't need to be an inline closure.
*
* @usage
* const ref = useLazyRef(sortColumns, columns)
*/
export default function useLazyRef(init, initArg) {
const ref = React.useRef(UNINITIALIZED);
if (ref.current === UNINITIALIZED) {
ref.current = init(initArg);
}
return ref;
}