Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact
/
frontend
/node_modules
/@mui
/utils
/esm
/usePreviousProps
/usePreviousProps.js
| 'use client'; | |
| import * as React from 'react'; | |
| const usePreviousProps = value => { | |
| const ref = React.useRef({}); | |
| React.useEffect(() => { | |
| ref.current = value; | |
| }); | |
| return ref.current; | |
| }; | |
| export default usePreviousProps; |