Version 1.0.2 mit node_modules Verzeichnis

This commit is contained in:
ISA
2024-10-02 07:58:24 +02:00
parent f353a06b1b
commit 62b6e55a0a
68228 changed files with 4548477 additions and 651 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;
}