Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100879809
useStableMemo.d.ts
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
Mon, Feb 3, 13:44
Size
480 B
Mime Type
text/x-java
Expires
Wed, Feb 5, 13:44 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24040905
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
useStableMemo.d.ts
View Options
import { DependencyList } from 'react';
/**
* Identical to `useMemo` _except_ that it provides a semantic guarantee that
* values will not be invalidated unless the dependencies change. This is unlike
* the built in `useMemo` which may discard memoized values for performance reasons.
*
* @param factory A function that returns a value to be memoized
* @param deps A dependency array
*/
export default function useStableMemo<T>(factory: () => T, deps?: DependencyList): T;
Event Timeline
Log In to Comment