Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122174921
usePreviousProps.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 16, 08:45
Size
214 B
Mime Type
text/x-java
Expires
Fri, Jul 18, 08:45 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27444708
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
usePreviousProps.js
View Options
import * as React from 'react';
const usePreviousProps = value => {
const ref = React.useRef({});
React.useEffect(() => {
ref.current = value;
});
return ref.current;
};
export default usePreviousProps;
Event Timeline
Log In to Comment