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

Function createCursor

code/communication/public/app.js:12601–12605  ·  view source on GitHub ↗
(defaultValue)

Source from the content-addressed store, hash-verified

12599 var index = -1;
12600
12601 function createCursor(defaultValue) {
12602 return {
12603 current: defaultValue
12604 };
12605 }
12606
12607 function isEmpty() {
12608 return index === -1;

Callers 3

ReactFiberHostContextFunction · 0.70
ReactFiberLegacyContextFunction · 0.70
ReactFiberNewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected