MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / useMountEffect

Function useMountEffect

packages/studio/src/hooks/useMountEffect.ts:15–18  ·  view source on GitHub ↗
(effect: () => void | (() => void))

Source from the content-addressed store, hash-verified

13 * @see https://react.dev/learn/you-might-not-need-an-effect
14 */
15export function useMountEffect(effect: () => void | (() => void)) {
16 // eslint-disable-next-line react-hooks/exhaustive-deps
17 useEffect(effect, []);
18}

Callers 15

AskAgentModalFunction · 0.90
DomEditOverlay.tsxFile · 0.90
useDomEditOverlayRectsFunction · 0.90
NLELayout.tsxFile · 0.90
CaptionOverlay.tsxFile · 0.90
useCaptionSyncFunction · 0.90
useTimelinePlayheadFunction · 0.90
EditPopoverFunction · 0.90
useTimelineClipDragFunction · 0.90
Timeline.tsxFile · 0.90
VideoThumbnail.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected