You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
'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; |