MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / createCursor

Function createCursor

code/presentational-and-container/public/app.js:12439–12443  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

12437 var index = -1;
12438
12439 function createCursor(defaultValue) {
12440 return {
12441 current: defaultValue
12442 };
12443 }
12444
12445 function isEmpty() {
12446 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected