MCPcopy
hub / github.com/facebook/react / useEffectEvent

Function useEffectEvent

packages/react-server/src/ReactFizzHooks.js:546–551  ·  view source on GitHub ↗
(
  callback: F,
)

Source from the content-addressed store, hash-verified

544}
545
546export function useEffectEvent<Args, Return, F: (...Array<Args>) => Return>(
547 callback: F,
548): F {
549 // $FlowIgnore[incompatible-return]
550 return throwOnUseEffectEventCall;
551}
552
553function useSyncExternalStore<T>(
554 subscribe: (() => void) => () => void,

Callers 7

NonReactiveEffectEventFunction · 0.90
CounterFunction · 0.50
useCountFunction · 0.50
AppFunction · 0.50
PageFunction · 0.50
useCustomHookFunction · 0.50

Calls

no outgoing calls

Tested by 6

NonReactiveEffectEventFunction · 0.72
CounterFunction · 0.40
useCountFunction · 0.40
AppFunction · 0.40
PageFunction · 0.40
useCustomHookFunction · 0.40