MCPcopy
hub / github.com/react/react / flush

Function flush

packages/react-reconciler/src/__tests__/ReactNewContext-test.js:1456–1464  ·  view source on GitHub ↗
(unitsOfWork)

Source from the content-addressed store, hash-verified

1454
1455 const FLUSH = 'FLUSH';
1456 function flush(unitsOfWork) {
1457 return {
1458 type: FLUSH,
1459 unitsOfWork,
1460 toString() {
1461 return `flush(${unitsOfWork})`;
1462 },
1463 };
1464 }
1465
1466 const UPDATE = 'UPDATE';
1467 function update(key, value) {

Callers 2

randomActionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected