MCPcopy Create free account
hub / github.com/BetaSu/big-react / createUpdate

Function createUpdate

packages/react-reconciler/src/updateQueue.ts:21–34  ·  view source on GitHub ↗
(
	action: Action<State>,
	lane: Lane,
	hasEagerState = false,
	eagerState = null
)

Source from the content-addressed store, hash-verified

19}
20
21export const createUpdate = <State>(
22 action: Action<State>,
23 lane: Lane,
24 hasEagerState = false,
25 eagerState = null
26): Update<State> => {
27 return {
28 action,
29 lane,
30 next: null,
31 hasEagerState,
32 eagerState
33 };
34};
35
36export const createUpdateQueue = <State>() => {
37 return {

Callers 3

updateContainerFunction · 0.90
dispatchSetStateFunction · 0.90
processUpdateQueueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected