MCPcopy Create free account
hub / github.com/caseywebdev/react-list / mountImperativeHandle

Function mountImperativeHandle

docs/index.js:25459–25475  ·  view source on GitHub ↗
(ref, create, deps)

Source from the content-addressed store, hash-verified

25457 );
25458 }
25459 function mountImperativeHandle(ref, create, deps) {
25460 "function" !== typeof create &&
25461 console.error(
25462 "Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",
25463 null !== create ? typeof create : "null"
25464 );
25465 deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
25466 var fiberFlags = 4194308;
25467 (currentlyRenderingFiber$1.mode & StrictEffectsMode) !== NoMode &&
25468 (fiberFlags |= 67108864);
25469 mountEffectImpl(
25470 fiberFlags,
25471 Layout,
25472 imperativeHandleEffect.bind(null, create, ref),
25473 deps
25474 );
25475 }
25476 function updateImperativeHandle(ref, create, deps) {
25477 "function" !== typeof create &&
25478 console.error(

Callers 1

index.jsFile · 0.85

Calls 1

mountEffectImplFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…