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

Function mountState

docs/index.js:25068–25078  ·  view source on GitHub ↗
(initialState)

Source from the content-addressed store, hash-verified

25066 return hook;
25067 }
25068 function mountState(initialState) {
25069 initialState = mountStateImpl(initialState);
25070 var queue = initialState.queue,
25071 dispatch = dispatchSetState.bind(
25072 null,
25073 currentlyRenderingFiber$1,
25074 queue
25075 );
25076 queue.dispatch = dispatch;
25077 return [initialState.memoizedState, dispatch];
25078 }
25079 function mountOptimistic(passthrough) {
25080 var hook = mountWorkInProgressHook();
25081 hook.memoizedState = hook.baseState = passthrough;

Callers 1

index.jsFile · 0.85

Calls 1

mountStateImplFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…