Revert "Add yet-another-react-lightbox package and update .gitignore to exclude node_modules"
This reverts commit c92f4a5edd.
This commit is contained in:
14
frontend/node_modules/react-dnd/dist/hooks/useOptionalFactory.js
generated
vendored
Normal file
14
frontend/node_modules/react-dnd/dist/hooks/useOptionalFactory.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { useMemo } from 'react';
|
||||
export function useOptionalFactory(arg, deps) {
|
||||
const memoDeps = [
|
||||
...deps || []
|
||||
];
|
||||
if (deps == null && typeof arg !== 'function') {
|
||||
memoDeps.push(arg);
|
||||
}
|
||||
return useMemo(()=>{
|
||||
return typeof arg === 'function' ? arg() : arg;
|
||||
}, memoDeps);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=useOptionalFactory.js.map
|
||||
Reference in New Issue
Block a user