Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99916842
emotion-use-insertion-effect-with-fallbacks.esm.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
Mon, Jan 27, 06:44
Size
585 B
Mime Type
text/x-java
Expires
Wed, Jan 29, 06:44 (2 d)
Engine
blob
Format
Raw Data
Handle
23849215
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
emotion-use-insertion-effect-with-fallbacks.esm.js
View Options
import * as React from 'react';
import { useLayoutEffect } from 'react';
var isBrowser = typeof document !== 'undefined';
var syncFallback = function syncFallback(create) {
return create();
};
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback;
var useInsertionEffectWithLayoutFallback = useInsertionEffect || useLayoutEffect;
export { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };
Event Timeline
Log In to Comment