MCPcopy Index your code
hub / github.com/caseywebdev/react-list / startHostTransition

Function startHostTransition

docs/index.js:8054–8069  ·  view source on GitHub ↗
(formFiber, pendingState, action, formData)

Source from the content-addressed store, hash-verified

8052}
8053function noop$2() {}
8054function startHostTransition(formFiber, pendingState, action, formData) {
8055 if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));
8056 var queue = ensureFormComponentIsStateful(formFiber).queue;
8057 startTransition(
8058 formFiber,
8059 queue,
8060 pendingState,
8061 sharedNotPendingObject,
8062 null === action
8063 ? noop$2
8064 : function () {
8065 requestFormReset$1(formFiber);
8066 return action(formData);
8067 }
8068 );
8069}
8070function ensureFormComponentIsStateful(formFiber) {
8071 var existingStateHook = formFiber.memoizedState;
8072 if (null !== existingStateHook) return existingStateHook;

Callers 2

extractEvents$1Function · 0.85

Calls 4

formatProdErrorMessageFunction · 0.85
startTransitionFunction · 0.85
requestFormReset$1Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…