FrontPastel/node_modules/@mui/utils/legacy/usePreviousProps/usePreviousProps.js

11 lines
255 B
JavaScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
'use client';
import * as React from 'react';
var usePreviousProps = function usePreviousProps(value) {
var ref = React.useRef({});
React.useEffect(function () {
ref.current = value;
});
return ref.current;
};
export default usePreviousProps;