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

Function rerenderOptimistic

docs/index.js:25111–25117  ·  view source on GitHub ↗
(passthrough, reducer)

Source from the content-addressed store, hash-verified

25109 );
25110 }
25111 function rerenderOptimistic(passthrough, reducer) {
25112 var hook = updateWorkInProgressHook();
25113 if (null !== currentHook)
25114 return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
25115 hook.baseState = passthrough;
25116 return [passthrough, hook.queue.dispatch];
25117 }
25118 function dispatchActionState(
25119 fiber,
25120 actionQueue,

Callers 1

index.jsFile · 0.85

Calls 2

updateWorkInProgressHookFunction · 0.85
updateOptimisticImplFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…