worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
1
node_modules/@mui/utils/esm/useLazyRef/index.d.ts
generated
vendored
Normal file
1
node_modules/@mui/utils/esm/useLazyRef/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { default } from "./useLazyRef.js";
|
||||
1
node_modules/@mui/utils/esm/useLazyRef/index.js
generated
vendored
Normal file
1
node_modules/@mui/utils/esm/useLazyRef/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { default } from "./useLazyRef.js";
|
||||
9
node_modules/@mui/utils/esm/useLazyRef/useLazyRef.d.ts
generated
vendored
Normal file
9
node_modules/@mui/utils/esm/useLazyRef/useLazyRef.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import * as React from 'react';
|
||||
/**
|
||||
* 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<T, U>(init: (arg?: U) => T, initArg?: U): React.RefObject<T>;
|
||||
19
node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js
generated
vendored
Normal file
19
node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js
generated
vendored
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue