worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
14
node_modules/@mui/utils/esm/useOnMount/useOnMount.js
generated
vendored
Normal file
14
node_modules/@mui/utils/esm/useOnMount/useOnMount.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
const EMPTY = [];
|
||||
|
||||
/**
|
||||
* A React.useEffect equivalent that runs once, when the component is mounted.
|
||||
*/
|
||||
export default function useOnMount(fn) {
|
||||
// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array
|
||||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
React.useEffect(fn, EMPTY);
|
||||
/* eslint-enable react-hooks/exhaustive-deps */
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue