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

Function updateOptimistic

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

Source from the content-addressed store, hash-verified

25097 return [passthrough, hook];
25098 }
25099 function updateOptimistic(passthrough, reducer) {
25100 var hook = updateWorkInProgressHook();
25101 return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
25102 }
25103 function updateOptimisticImpl(hook, current, passthrough, reducer) {
25104 hook.baseState = passthrough;
25105 return updateReducerImpl(

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…